private void restoreCbsStates() {
   myCbOptimizeImports.setSelected(myLastRunOptions.getLastOptimizeImports());
   myCbRearrangeEntries.setSelected(myLastRunOptions.getLastRearrangeCode());
   myCbOnlyVcsChangedRegions.setEnabled(myEnableOnlyVCSChangedTextCb);
   myCbOnlyVcsChangedRegions.setSelected(
       myEnableOnlyVCSChangedTextCb
           && myLastRunOptions.getLastTextRangeType() == TextRangeType.VCS_CHANGED_TEXT);
 }
 @Override
 protected void doOKAction() {
   super.doOKAction();
   myLastRunOptions.saveOptimizeImportsState(isOptimizeImports());
   myLastRunOptions.saveRearrangeCodeState(isRearrangeCode());
   if (myEnableOnlyVCSChangedTextCb) {
     myLastRunOptions.saveProcessVcsChangedTextState(
         getTextRangeType() == TextRangeType.VCS_CHANGED_TEXT);
   }
 }