@Override
  protected boolean isAvailable(@NotNull AnActionEvent e) {
    Editor editor = getEditor(e);
    return editor != null;
  }
@Override
  protected boolean isAvailable(@NotNull AnActionEvent e)