void () { final PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(replacement.getDocument()); if (file != null) { DaemonCodeAnalyzer.getInstance(project).setHighlightingEnabled(file, true); } EditorFactory.getInstance().releaseEditor(replacement); removeHighlighter(); super.dispose(); }