code: private void addModules(MavenProject project, MavenProjectDirectoryDescriptor projectDescriptor, ScannerContext scannerContext) {
          File projectDirectory = project.getBasedir();
          Set<File> modules = new HashSet<>();
          for (String moduleName : project.getModules()) {
              File module = new File(projectDirectory, moduleName);
              modules.add(module);
          }
          for (MavenProject module : project.getCollectedProjects()) {
              if (modules.contains(module.getBasedir())) {
                  MavenProjectDescriptor moduleDescriptor = resolveProject(module, MavenProjectDescriptor.class, scannerContext);
                  projectDescriptor.getModules().add(moduleDescriptor);
              }
          }
      }
docs: Add relations to the modules.
  
  @param project
  The project.
  @param projectDescriptor
  The project descriptor.
  @param scannerContext
  The scanner context.