Collection<BranchConfig> (@NotNull Ini ini) { Collection<BranchConfig> configs = new ArrayList<>(); for (Map.Entry<String, Profile.Section> stringSectionEntry : ini.entrySet()) { String sectionName = stringSectionEntry.getKey(); Profile.Section section = stringSectionEntry.getValue(); BranchConfig branchConfig = parseBranchSection(sectionName, section); if (branchConfig != null) { configs.add(branchConfig); } } return configs; }