int[] (@NotNull Collection<? extends RunAnythingGroup> groups) { IntList list = new IntArrayList(); for (RunAnythingGroup runAnythingGroup : groups) { list.add(runAnythingGroup.myTitleIndex); } for (RunAnythingGroup runAnythingGroup : groups) { list.add(runAnythingGroup.myMoreIndex); } return list.toIntArray(); }