Nullability (@NotNull Nullability nullability, @NotNull PsiAnnotation annotation) { if (nullability == Nullability.NOT_NULL && annotation.hasQualifiedName(Jsr305Support.JAVAX_ANNOTATION_NONNULL)) { Nullability correctedNullability = Jsr305Support.extractNullityFromWhenValue(annotation); if (correctedNullability != null) { return correctedNullability; } } return nullability; }