@Nullable
  private static Nullability getNullabilityFromType(@Nullable PsiType resultType, @NotNull PsiModifierListOwner owner) {
    Nullability fromType = getTypeNullability(resultType);
    if (fromType != Nullability.UNKNOWN) {
      if (fromType == Nullability.NOT_NULL && hasNullContract(owner)) {
        return Nullability.UNKNOWN;
      }
      return fromType;
    }
    return null;
  }
@Nullable
  private static Nullability getNullabilityFromType(@Nullable PsiType resultType, @NotNull PsiModifierListOwner owner)