private static void tabulateDependentClasses(RefElement element, Set<? super RefClass> dependents) {
    addOwnerClassesToSet(element.getInReferences(), dependents);
    if (element instanceof RefClass refClass) {
      addOwnerClassesToSet(refClass.getInTypeReferences(), dependents);
    }
    final List<RefEntity> children = element.getChildren();
    for (RefEntity child : children) {
      if (child instanceof RefElement && !(child instanceof RefClass)) {
        tabulateDependentClasses((RefElement)child, dependents);
      }
    }
  }
private static void tabulateDependentClasses(RefElement element, Set<? super RefClass> dependents)