boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MyInstanceElement element = (MyInstanceElement)o; return Objects.equals(getThis(), element.getThis()) && Objects.equals(myClass, element.myClass) && Objects.equals(myContext, element.myContext) && Objects.equals(getNode(), element.getNode()); }