private static boolean hasKnownComparableType(@NotNull Comparison comparison, @Nullable PsiType type) {
    return comparison.isExternalComparison() || (type != null && getComparingMethod(type) != null);
  }
private static boolean hasKnownComparableType(@NotNull Comparison comparison, @Nullable PsiType type)