Optional<PsiClass> (@NotNull PsiClass psiClass) { final PsiElement parentElement = psiClass.getParent(); if (parentElement instanceof PsiClass && !(parentElement instanceof LombokLightClassBuilder)) { return Optional.of((PsiClass) parentElement); } return Optional.empty(); }