@Override
  protected boolean doIsSelected(@NotNull AnActionEvent e) {
    final ExternalProjectsViewImpl view = getView();
    return view != null && isSelected(view);
  }
@Override
  protected boolean doIsSelected(@NotNull AnActionEvent e)