boolean (@NotNull PsiElement element) { if ((element instanceof PsiField || element instanceof PsiRecordComponent) && !DumbService.isDumb(element.getProject())) { final PsiMember psiMember = (PsiMember) element; final PsiClass containingClass = psiMember.getContainingClass(); if (containingClass != null) { return Arrays.stream(containingClass.getMethods()).anyMatch(LombokLightMethodBuilder.class::isInstance) || Arrays.stream(containingClass.getInnerClasses()).anyMatch(LombokLightClassBuilder.class::isInstance); } } return false; }