void (@NotNull List<MavenDomProfile> result, @Nullable List<MavenDomProfile> profilesToAdd) { if (profilesToAdd == null) return; for (MavenDomProfile profile : profilesToAdd) { if (StringUtil.equals(profile.getId().getValue(), myProfileName)) { result.add(profile); } } }