code: private void addDependencies(MavenDependentDescriptor dependentDescriptor, Class<? extends AbstractDependencyDescriptor> declaresDependencyType,
              Class<? extends AbstractDependencyDescriptor> managesDependencyType, ModelBase model, ScannerContext scannerContext) {
          dependentDescriptor.getDeclaresDependencies()
                  .addAll(getDependencies(dependentDescriptor, model.getDependencies(), declaresDependencyType, scannerContext));
          dependentDescriptor.getManagesDependencies()
              .addAll(addManagedDependencies(dependentDescriptor, model.getDependencyManagement(), scannerContext, managesDependencyType));
      }
docs: Adds declared and managed dependencies to the given
  {@link MavenDependentDescriptor}.
  
  @param dependentDescriptor
  The {@link MavenDependentDescriptor}.
  @param model
  The {@link ModelBase} providing the dependencies.
  @param scannerContext
  The scanner context.