boolean (PsiClass psiClass, PsiMethod firstPropertyMethod, String annotationClassName) { final PsiAnnotation presentAnnotation = PsiAnnotationSearchUtil.findAnnotation(psiClass, annotationClassName); if (null != presentAnnotation) { final String presentAccessModifier = LombokProcessorUtil.getMethodModifier(presentAnnotation); final String currentAccessModifier = PsiUtil.getAccessModifier(PsiUtil.getAccessLevel(firstPropertyMethod.getModifierList())); return presentAccessModifier != null && presentAccessModifier.equals(currentAccessModifier); } return true; }