@Contract("null, _ -> false")
  private static boolean isTypeConvertible(PsiType type, PsiElement context) {
    type = PsiPrimitiveType.getOptionallyUnboxedType(type);
    return type != null && (PsiTypes.doubleType().equals(type) ||
                            PsiTypes.floatType().equals(type) ||
                            PsiUtil.isLanguageLevel7OrHigher(context));
  }
@Contract("null, _ -> false")
  private static boolean isTypeConvertible(PsiType type, PsiElement context)