void () { myCbOptimizeImports.setSelected(myLastRunOptions.getLastOptimizeImports()); myCbRearrangeEntries.setSelected(myLastRunOptions.getLastRearrangeCode()); myCbCleanupCode.setSelected(myLastRunOptions.getLastCodeCleanup()); myCbOnlyVcsChangedRegions.setEnabled(myEnableOnlyVCSChangedTextCb); myCbOnlyVcsChangedRegions.setSelected( myEnableOnlyVCSChangedTextCb && myLastRunOptions.getLastTextRangeType() == TextRangeType.VCS_CHANGED_TEXT ); }