@Contract(pure = true)
  public static boolean isNumericType(PsiType type) {
    return type != null && isNumericType(getTypeRank(type));
  }
@Contract(pure = true)
  public static boolean isNumericType(PsiType type)