public static boolean isExternallyReferenced(RefElement element) {
    return ContainerUtil.exists(element.getInReferences(), reference -> reference instanceof RefFile);
  }
public static boolean isExternallyReferenced(RefElement element)