RunAnythingGroup (@NotNull Collection<? extends RunAnythingGroup> groups, int titleIndex) { return groups.stream().filter(runAnythingGroup -> titleIndex == runAnythingGroup.myTitleIndex).findFirst().orElse(null); }