@Override
  public void update(@NotNull AnActionEvent e) {
    Library library = getLibrary();
    e.getPresentation().setEnabledAndVisible(library != null);
  }
@Override
  public void update(@NotNull AnActionEvent e)