code: private MavenArtifactDescriptor getMavenArtifactDescriptor(Dependency dependency, ScannerContext context) {
          DependencyCoordinates coordinates = new DependencyCoordinates(dependency);
          return getArtifactResolver(context).resolve(coordinates, context);
      }
docs: Creates a MavenArtifactDescriptor and fills it with all information from
  given dependency.
  
  @param dependency
  Dependency.
  @param context
  The scanner context.
  @return The MavenArtifactDescriptor.