void () { EditorActionManager actionManager = EditorActionManager.getInstance(); EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_ENTER); DataContext context = DataManager.getInstance().getDataContext(getEditor().getComponent()); actionHandler.execute(getEditor(), getEditor().getCaretModel().getCurrentCaret(), context); }