List<MavenProfile> (VirtualFile projectFile, Element xmlProject, Collection<MavenProjectProblem> problems, Set<String> alwaysOnProfiles) { List<MavenProfile> result = new ArrayList<>(); collectProfiles(MavenJDOMUtil.findChildrenByPath(xmlProject, "profiles", "profile"), result, MavenConstants.PROFILE_FROM_POM); VirtualFile profilesFile = MavenUtil.findProfilesXmlFile(projectFile); if (profilesFile != null) { collectProfilesFromSettingsXmlOrProfilesXml(profilesFile, "profilesXml", true, MavenConstants.PROFILE_FROM_PROFILES_XML, result, alwaysOnProfiles, problems); } return result; }