void () { if (myShowErrorDialogs) { HighlightManager highlightManager = HighlightManager.getInstance(myProject); PsiStatement[] exitStatementsArray = myExitStatements.toArray(PsiStatement.EMPTY_ARRAY); highlightManager.addOccurrenceHighlights(myEditor, exitStatementsArray, EditorColors.SEARCH_RESULT_ATTRIBUTES, true, null); String message = RefactoringBundle .getCannotRefactorMessage(JavaRefactoringBundle.message("there.are.multiple.exit.points.in.the.selected.code.fragment")); CommonRefactoringUtil.showErrorHint(myProject, myEditor, message, myRefactoringName, myHelpId); WindowManager.getInstance().getStatusBar(myProject).setInfo(RefactoringBundle.message("press.escape.to.remove.the.highlighting")); } }