boolean (@NotNull Accessor accessor, @NotNull Object bean, @Nullable Object beanValue) { Object defValue = accessor.read(getDefaultBean(bean)); if (defValue instanceof Element && beanValue instanceof Element) { return !JDOMUtil.areElementsEqual((Element)beanValue, (Element)defValue); } else { return !Comparing.equal(beanValue, defValue); } }