boolean (PsiElement another) { if (another instanceof LombokLightFieldBuilder anotherLightField) { boolean stillEquivalent = getName().equals(anotherLightField.getName()) && getType().equals(anotherLightField.getType()); if (stillEquivalent) { final PsiClass containingClass = getContainingClass(); final PsiClass anotherContainingClass = anotherLightField.getContainingClass(); stillEquivalent = (null == containingClass && null == anotherContainingClass) || (null != containingClass && containingClass.isEquivalentTo(anotherContainingClass)); } return stillEquivalent; } else { return super.isEquivalentTo(another); } }