code: private void addModel(MavenProject project, MavenProjectDirectoryDescriptor projectDescriptor, Scanner scanner) {
          File pomXmlFile = project.getFile();
          FileDescriptor mavenPomXmlDescriptor = scanner.scan(pomXmlFile, pomXmlFile.getAbsolutePath(), MavenScope.PROJECT);
          projectDescriptor.setModel(mavenPomXmlDescriptor);
          // Effective model
          MavenPomDescriptor effectiveModelDescriptor = scanner.getContext().getStore().create(MavenPomDescriptor.class);
          Model model = new EffectiveModel(project.getModel());
          scanner.getContext().push(MavenPomDescriptor.class, effectiveModelDescriptor);
          scanner.scan(model, pomXmlFile.getAbsolutePath(), MavenScope.PROJECT);
          scanner.getContext().pop(MavenPomDescriptor.class);
          projectDescriptor.setEffectiveModel(effectiveModelDescriptor);
      }
docs: Scan the pom.xml file and add it as model.
  
  @param project
  The Maven project
  @param projectDescriptor
  The project descriptor.
  @param scanner
  The scanner.