RawModelReadResult (Project project, VirtualFile file, boolean headerOnly) { MavenModel result = null; Collection<MavenProjectProblem> problems = MavenProjectProblem.createProblemsList(); Set<String> alwaysOnProfiles = new HashSet<>(); String fileExtension = file.getExtension(); if (!"pom".equalsIgnoreCase(fileExtension) && !"xml".equalsIgnoreCase(fileExtension)) { return readProjectModelUsingMavenServer(project, file, result, problems, alwaysOnProfiles); } return readMavenProjectModel(file, headerOnly, problems, alwaysOnProfiles, MavenConsumerPomUtil.isAutomaticVersionFeatureEnabled(file, project)); }