private static boolean isStrictlyInconvertible(@Nullable PsiType pendingType,
                                                 @Nullable PsiType resolvedType,
                                                 @NotNull PsiElement context) {
    if (pendingType != null) {
      if (resolvedType instanceof PsiPrimitiveType && ((PsiPrimitiveType)resolvedType).getBoxedType(context) != null) return true;
      PsiClass rightTypeClass = PsiUtil.resolveClassInClassTypeOnly(resolvedType);
      if (rightTypeClass != null &&
          rightTypeClass.hasModifierProperty(PsiModifier.FINAL) &&
          rightTypeClass.getTypeParameters().length == 0) {
        return true;
      }
    }
    return false;
  }
private static boolean isStrictlyInconvertible(@Nullable PsiType pendingType,
                                                 @Nullable PsiType resolvedType,
                                                 @NotNull PsiElement context)