code: private <F extends FileDescriptor> void scanPath(MavenProjectDirectoryDescriptor projectDescriptor, String path, Scope scope, Scanner scanner) {
          File file = new File(path);
          if (!file.exists()) {
              LOGGER.debug(file.getAbsolutePath() + " does not exist, skipping.");
          } else {
              F fileDescriptor = scanFile(projectDescriptor, file, path, scope, scanner);
              if (fileDescriptor != null) {
                  projectDescriptor.getContains().add(fileDescriptor);
              }
          }
      }
docs: Scan a given path and add it to
  {@link MavenProjectDirectoryDescriptor#getContains()}.
  
  @param projectDescriptor
  The maven project descriptor.
  @param path
  The path.
  @param scope
  The scope.
  @param scanner
  The scanner.