Nullability (@NotNull PsiAnnotation qualifier) { String qName = qualifier.getQualifiedName(); if (qName == null) return null; NullableNotNullManager manager = NullableNotNullManager.getInstance(qualifier.getProject()); if (qName.equals(JAVAX_ANNOTATION_NULLABLE) && manager.getNullables().contains(qName)) { return Nullability.NULLABLE; } if (qName.equals(JAVAX_ANNOTATION_NONNULL)) return extractNullityFromWhenValue(qualifier); return manager.getAnnotationNullability(qName).orElse(null); }