public static boolean isNullableAny(@NotNull JetType type) { return isAnyOrNullableAny(type) && type.isMarkedNullable(); }
private static boolean isNotNullConstructedFromGivenClass( @NotNull JetType type, @NotNull FqNameUnsafe fqName) { return !type.isMarkedNullable() && isConstructedFromGivenClass(type, fqName); }
public static boolean isNullableNothing(@NotNull JetType type) { return isNothingOrNullableNothing(type) && type.isMarkedNullable(); }
public static boolean isPrimitiveType(@NotNull JetType type) { ClassifierDescriptor descriptor = type.getConstructor().getDeclarationDescriptor(); return !type.isMarkedNullable() && descriptor != null && FQ_NAMES.primitiveTypes.contains(DescriptorUtils.getFqName(descriptor)); }