@Override
  protected boolean isAvailable(@NotNull AnActionEvent e) {
    if (!super.isAvailable(e)) return false;

    return getTargetState(e) != null;
  }
@Override
  protected boolean isAvailable(@NotNull AnActionEvent e)