boolean (@NotNull PsiElement element, EnumSet<LombokPsiElementUsage> elementUsages) { if (element instanceof PsiField psiField) { if (isUsedByLombokAnnotations(psiField, psiField, elementUsages) || isUsedByLombokAnnotations(psiField, psiField.getContainingClass(), elementUsages)) { return true; } } return false; }