GraphQL Jmix logic, error on composition check

Hi Jmix, please check logic in this reference . I’ve created frontend module, and it’s again and again throws incorrect composition attribute in class ‘SomeClass’. For now on there is logic like
if (!parent.equals(child)) { wich is incorrect, because we can’t check is master entity equal to child in composition relation, please change logic to correct like !parent.equals(inverseValue) , because some earlier in this method we take inverseValue as parent field in child entity, and check wether is null, and then comes incorrect logic. I’ve added PR on your GitHub , so please approve it.