boolean (@NotNull final AnActionEvent e) { final VirtualFile[] selectedFiles = getSelectedFiles(); if (selectedFiles.length == 0) return false; ContentEntryEditor editor = myEntryTreeEditor.getContentEntryEditor(); return editor != null && editor.isExcludedOrUnderExcludedDirectory(selectedFiles[0]); }