void (@NotNull Project project, @NotNull AnActionEvent e, @NotNull AnAction failedAction) { String actionTitle = StringUtil.trimEnd(ObjectUtils.notNull( e.getPresentation().getText(), GotoClassPresentationUpdater.getActionTitle()), "..."); String message = IdeBundle.message("go.to.class.dumb.mode.message", actionTitle); DumbService.getInstance(project).showDumbModeNotificationForAction(message, ActionManager.getInstance().getId(failedAction)); AnAction action = ActionManager.getInstance().getAction(GotoFileAction.ID); InputEvent event = ActionCommand.getInputEvent(GotoFileAction.ID); Component component = e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT); ActionManager.getInstance().tryToExecute(action, event, component, e.getPlace(), true); }