private void validateMaxLineWithExtension() { if (myMaxLineWithExtensionWidth > 0) { Project project = myEditor.getProject(); VirtualFile virtualFile = myEditor.getVirtualFile(); if (project != null && virtualFile != null) { for (EditorLinePainter painter : EditorLinePainter.EP_NAME.getExtensions()) { Collection<LineExtensionInfo> extensions = painter.getLineExtensions(project, virtualFile, myWidestLineWithExtension); if (extensions != null && !extensions.isEmpty()) { return; } } } myMaxLineWithExtensionWidth = 0; } }