@Override
  public boolean isSelected(@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]);
  }
@Override
  public boolean isSelected(@NotNull final AnActionEvent e)