void () { boolean canOptimizeImports = !LanguageImportStatements.INSTANCE.forFile(myFile).isEmpty(); myOptimizeImportsCb.setVisible(canOptimizeImports); if (canOptimizeImports) { myOptimizeImportsCb.setSelected(myLastRunOptions.getLastOptimizeImports()); } boolean canRearrangeCode = Rearranger.EXTENSION.forLanguage(myFile.getLanguage()) != null; myRearrangeCodeCb.setVisible(canRearrangeCode); if (canRearrangeCode) { myRearrangeCodeCb.setSelected(myLastRunOptions.isRearrangeCode(myFile.getLanguage())); } myApplyCodeCleanup.setSelected(myLastRunOptions.getLastCodeCleanup()); boolean keepLineBreaks = CodeStyle.getLanguageSettings(myFile).KEEP_LINE_BREAKS; myDoNotKeepLineBreaks.setVisible(keepLineBreaks); if (keepLineBreaks) { myDoNotKeepLineBreaks.setSelected(myLastRunOptions.isDoNotKeepLineBreaks()); } }