void (@NotNull EditorFactoryEvent event) { if (myProject.isDisposed()) { return; } Editor editor = event.getEditor(); Document document = editor.getDocument(); Project editorProject = editor.getProject(); boolean showing = ComponentUtil.isShowing(editor.getContentComponent(), true); boolean worthBothering = worthBothering(document, editorProject); if (!showing || !worthBothering) { LOG.debug("Not worth bothering about editor created for: " + editor.getVirtualFile() + " because editor isShowing(): " + showing + "; project is open and file is mine: " + worthBothering); return; } // worthBothering() checks for getCachedPsiFile, so call getPsiFile here PsiFile file = editorProject == null ? null : PsiDocumentManager.getInstance(editorProject).getPsiFile(document); ErrorStripeUpdateManager.getInstance(myProject).repaintErrorStripePanel(editor, file); }