code: public Collection<Dependency> getDependencies(Key<?> typeKey, MethodLiteral<?, ?> method) {
      String context;
  
      if (method.isConstructor()) {
        context = "@Inject constructor of " + method.getDeclaringType();
      } else if (typeKey == Dependency.GINJECTOR) {
        context = "Member injector " + method;
      } else {
        context = "Member injection via " + method;
      }
  
      Set<Dependency> required = new LinkedHashSet<Dependency>();
      for (Key<?> key : method.getParameterKeys()) {
        required.add(new Dependency(typeKey, key, isOptional(method), false, context));
      }
      return required;
    }
docs: Collects and returns all keys required to inject the given method.
  
  @param typeKey the key that depends on injecting the arguments of method
  @param method method for which required keys are calculated
  @return required keys