boolean (PsiModifierListOwner owner, String name) { NullableNotNullManager manager = NullableNotNullManager.getInstance(owner.getProject()); if (name.equals(manager.getDefaultNotNull()) || name.equals(manager.getDefaultNullable())) { return ContainerUtil.exists(owner.getAnnotations(), NullableNotNullManager::isNullabilityAnnotation); } return false; }