String (PsiElement element) { AnActionEvent event = createActionEvent(element); return Arrays.stream(myActions) .map(action -> getText(action, event)) .filter(Objects::nonNull) .collect(Collectors.joining("\n")); }