Info (@NotNull PsiElement element) { if (isMainClauseOnTopLevel(element)) { AnAction[] actions = ExecutorAction.getActions(); AnActionEvent event = createActionEvent(element); Function<PsiElement, String> tooltipProvider = o -> StringUtil.join(ContainerUtil.mapNotNull( actions, action -> getText(action, event)), "\n"); return new Info(AllIcons.RunConfigurations.TestState.Run, tooltipProvider, actions); } return null; }