boolean (@Nullable VirtualFile vFile, @Nullable EditorWindow window) { if (vFile == null || window == null) { return false; } if (!myCloseSource && FileEditorManagerImpl.forbidSplitFor(vFile)) { return false; } int minimum = myCloseSource ? 2 : 1; return window.getTabCount() >= minimum; }