bool equalsTypeOrEntityType(TypeInfo? other) { if (other == null) return false; return equalsType(other) || equalsEntityType(other); }