boolean (@NotNull Project project, @NotNull VirtualFile file) { MarkdownSplitEditorProvider provider = FileEditorProvider.EP_FILE_EDITOR_PROVIDER.findExtension(MarkdownSplitEditorProvider.class); if (provider == null) { return true; } FileEditorState state = EditorHistoryManager.getInstance(project).getState(file, provider); if (!(state instanceof SplitFileEditor.MyFileEditorState)) { return true; } String layout = ((SplitFileEditor.MyFileEditorState)state).getSplitLayout(); return layout == null || !layout.equals("FIRST"); //todo[kb] remove after migration to the new state model }