boolean (@NotNull EditorComposite editor, @NotNull EditorWindow window, @NotNull FileEditorManagerEx fileEditorManager) { return !fileEditorManager.isChanged(editor) && !window.isFilePinned(editor.getFile()); }