private static @Nullable Editor getEditor(@NotNull AnActionEvent e) {
    return e.getData(CommonDataKeys.EDITOR_EVEN_IF_INACTIVE);
  }
private static @Nullable Editor getEditor(@NotNull AnActionEvent e)