private static boolean isTopLevelClass(RefElement refElement) {
    return refElement instanceof RefClass && refElement.getOwner() instanceof RefPackage;
  }
private static boolean isTopLevelClass(RefElement refElement)