void (String actionId, MyEditorActionHandlerFactory<LfeBaseEditorActionHandler> lfeEditorActionHandlerFactory) { try { EditorActionManager editorActionManager = EditorActionManager.getInstance(); EditorActionHandler originalHandler = editorActionManager.getActionHandler(actionId); EditorActionHandler newHandler = lfeEditorActionHandlerFactory.create(originalHandler); editorActionManager.setActionHandler(actionId, newHandler); } catch (ClassCastException e) { logger.warn(e); } }