boolean (PsiField field, Annotated annotated, NullableNotNullManager manager, String anno, @NotNull ProblemsHolder holder) { if (!AnnotationUtil.isAnnotatingApplicable(field, anno)) { PsiAnnotation annotation = Objects.requireNonNull(annotated.isDeclaredNullable ? annotated.nullable : annotated.notNull); String message = JavaAnalysisBundle.message("inspection.message.code.generation.different.nullability.annotation.will.be.used", annotation.getQualifiedName(), anno); final PsiJavaCodeReferenceElement annotationNameReferenceElement = annotation.getNameReferenceElement(); holder.registerProblem(annotationNameReferenceElement != null && annotationNameReferenceElement.isPhysical() ? annotationNameReferenceElement : field.getNameIdentifier(), message, ProblemHighlightType.WEAK_WARNING, new ChangeNullableDefaultsFix(annotated.notNull, annotated.nullable, manager)); return false; } return true; }