boolean (@NotNull FileEditor editor) { ThreadingAssertions.assertEventDispatchThread(); if (ProjectManager.getInstance().getOpenProjects().length <= 1 || ApplicationManager.getApplication().isUnitTestMode()) { return true; } // optimization: in the case of two or more projects, ignore projects which are not active at the moment, e.g., inside minimized windows // see IDEA-314543 Don't run LineMarkersPass on non-active(opened) projects Window window = SwingUtilities.getWindowAncestor(editor.getComponent()); return window == null || window.isActive(); }