code: public void from(@Nonnull Dependency dependency) {
          Configuration configuration = getProject().getConfigurations().detachedConfiguration(dependency);
          from(configuration);
      }
docs: Processes a Dependency directly, which may be derived from
  {@link DependencyHandler#create(java.lang.Object)},
  {@link DependencyHandler#project(java.util.Map)},
  {@link DependencyHandler#module(java.lang.Object)},
  {@link DependencyHandler#gradleApi()}, etc.
  
  @param dependency The dependency to process.