Collection<String> () { if (isRider()) { // Rider has its own 'Format/cleanup/etc. on save' implementation. return Collections.emptyList(); } List<String> result = new ArrayList<>(5); result.add(CodeInsightBundle.message("actions.on.save.page.checkbox.reformat.code")); result.add(ActionsBundle.message("action.ReformatCode.synonym1")); if (isOptimizeImportsSupported()) { result.add(CodeInsightBundle.message("actions.on.save.page.checkbox.optimize.imports")); } if (isRearrangeCodeSupported()) { result.add(CodeInsightBundle.message("actions.on.save.page.checkbox.rearrange.code")); } if (isCleanupCodeSupported()) { result.add(CodeInsightBundle.message("actions.on.save.page.checkbox.run.code.cleanup")); } return result; }