public Iterable<ReferenceID> allDirectSupertypes(ReferenceID classId) {
    return classId instanceof JvmNodeReferenceID? map(allDirectSupertypes((JvmNodeReferenceID)classId), id -> id) : Collections.emptyList();
  }
public Iterable<ReferenceID> allDirectSupertypes(ReferenceID classId)