@Contract("null -> false")
  public static boolean isNumber(@Nullable PsiType type) {
    if (type == null) {
      return false;
    }
    if (PsiTypes.intType().equals(type) || PsiTypes.byteType().equals(type) || PsiTypes.longType().equals(type)) {
      return true;
    }

    String canonicalText = type.getCanonicalText();
    return CommonClassNames.JAVA_LANG_INTEGER.equals(canonicalText) ||
           CommonClassNames.JAVA_LANG_LONG.equals(canonicalText) ||
           CommonClassNames.JAVA_LANG_BYTE.equals(canonicalText);
  }
@Contract("null -> false")
  public static boolean isNumber(@Nullable PsiType type)