void (@NotNull PresentationData presentation) { String s1 = StringUtil.nullize(myMavenProjectsStructure.getShortcutsManager().getDescription(myMavenProject, myGoal)); String s2 = StringUtil.nullize(myMavenProjectsStructure.getTasksManager().getDescription(myMavenProject, myGoal)); String hint; if (s1 == null) { hint = s2; } else if (s2 == null) { hint = s1; } else { hint = s1 + ", " + s2; } setNameAndTooltip(presentation, getName(), null, hint); }