private static boolean isEnabled(@NotNull AnActionEvent e) {
    EventData data = collectEventData(e);
    if (data == null) return false;

    if (data.annotator.isAnnotationShown()) return true;
    return data.annotator.createAnnotationsLoader() != null;
  }
private static boolean isEnabled(@NotNull AnActionEvent e)