ActionGroup (@NotNull CustomFoldRegion region) { DefaultActionGroup group = new DefaultActionGroup(); group.add(new CopySelection()); group.addSeparator(); group.add(new ToggleRenderingAction(myItem)); AnAction toggleRenderAllAction = ActionManager.getInstance().getAction(IdeActions.ACTION_TOGGLE_RENDERED_DOC_FOR_ALL); if (toggleRenderAllAction != null) { group.add(toggleRenderAllAction); } group.add(new ChangeFontSize()); PsiDocCommentBase comment = getComment(); for (DocumentationActionProvider provider : DocumentationActionProvider.EP_NAME.getExtensions()) { provider.additionalActions(myItem.getEditor(), comment, myItem.getTextToRender()).forEach(group::add); } return group; }