public static Set<RefClass> calculateDependenciesForClass(RefClass refClass) {
    final Set<RefClass> dependencies = refClass.getUserData(DEPENDENCY_CLASSES_KEY);
    if (dependencies != null) {
      return dependencies;
    }
    final Set<RefClass> newDependencies = new HashSet<>();
    tabulateDependencyClasses(refClass, newDependencies);
    newDependencies.remove(refClass);
    refClass.putUserData(DEPENDENCY_CLASSES_KEY, newDependencies);
    return newDependencies;
  }
public static Set<RefClass> calculateDependenciesForClass(RefClass refClass)