void () { if (myOptimizeImportsCb.isEnabled() && myOptimizeImportsCb.isVisible()) { myLastRunOptions.saveOptimizeImportsState(myRunOptions.isOptimizeImports()); } if (myRearrangeCodeCb.isEnabled()) { myLastRunOptions.saveRearrangeState(myFile.getLanguage(), myRunOptions.isRearrangeCode()); } if (myApplyCodeCleanup.isEnabled()) { myLastRunOptions.saveCodeCleanupState(myApplyCodeCleanup.isSelected()); } if (!mySelectedTextRadioButton.isSelected() && myOnlyVCSChangedTextRb.isEnabled()) { myLastRunOptions.saveProcessVcsChangedTextState(myOnlyVCSChangedTextRb.isSelected()); } if (myDoNotKeepLineBreaks.isVisible()) { myLastRunOptions.setDoNotKeepLineBreaks(myDoNotKeepLineBreaks.isSelected()); } }