code: private void _addProfileDependencies(MavenProfileDescriptor profileDescriptor, List<Dependency> dependencies, ScannerContext scannerContext) {
          for (Dependency dependency : dependencies) {
              MavenArtifactDescriptor dependencyArtifactDescriptor = getMavenArtifactDescriptor(dependency, scannerContext);
              Store store = scannerContext.getStore();
              ProfileDeclaresDependencyDescriptor profileDependsOnDescriptor = store.create(profileDescriptor, ProfileDeclaresDependencyDescriptor.class,
                      dependencyArtifactDescriptor);
              profileDependsOnDescriptor.setOptional(dependency.isOptional());
              profileDependsOnDescriptor.setScope(dependency.getScope());
          }
      }
docs: Adds information about profile dependencies.
  
  @param profileDescriptor
  The descriptor for the current profile.
  @param dependencies
  The dependencies information.
  @param scannerContext
  The scanner context.