void (boolean isEnabled) { if (!isEnabled) { FileEditorManager fileEditorManager = FileEditorManager.getInstance(myProject); fileEditorManager.closeFile(myVirtualFile); fileEditorManager.openFile(myVirtualFile, false); } EditorNotifications.getInstance(myProject).updateNotifications(myVirtualFile); Document document = FileDocumentManager.getInstance().getDocument(myVirtualFile); PsiFile psiFile = document == null ? null : PsiDocumentManager.getInstance(myProject).getPsiFile(document); if (psiFile != null) { DaemonCodeAnalyzer.getInstance(myProject).restart(psiFile); } }