@Override
  public void update(@NotNull AnActionEvent e) {
    ConsoleViewImpl consoleView = ObjectUtils.tryCast(e.getData(LangDataKeys.CONSOLE_VIEW), ConsoleViewImpl.class);
    Editor editor = consoleView != null ? consoleView.getEditor() : null;
    boolean isShown = editor != null && editor.getGutter().isAnnotationsShown();
    e.getPresentation().setEnabled(editor != null && !isShown && !myIsLoading);
  }
@Override
  public void update(@NotNull AnActionEvent e)