private static @NotNull List<EditorActionHandlerBean> getRegisteredHandlers(@NotNull EditorAction editorAction) {
    String id = ActionManager.getInstance().getId(editorAction);
    if (id == null) {
      return Collections.emptyList();
    }

    List<EditorActionHandlerBean> extensions = EDITOR_ACTION_HANDLER_EP.getExtensionList();
    List<EditorActionHandlerBean> result = new ArrayList<>();
    for (int i = extensions.size() - 1; i >= 0; i--) {
      EditorActionHandlerBean handlerBean = extensions.get(i);
      if (handlerBean.action.equals(id)) {
        result.add(handlerBean);
      }
    }
    return result;
  }
private static @NotNull List<EditorActionHandlerBean> getRegisteredHandlers(@NotNull EditorAction editorAction)