Objects.requireNonNull(parent, "Message entity cannot be null");
MessageObject parentObject = (MessageObject) parent;
OWLNamedIndividual parentInd = parentObject.getObject();
MessageModel messageModel = parentObject.getModel();
Set<OWLNamedIndividual> hasSet =
<BUG>messageModel.getReasoner().getObjectPropertyValues(parentInd, hasProperty).getFlattened();
</BUG>
for (OWLNamedIndividual ind : hasSet) {
<BUG>Set<OWLClass> classes = messageModel.getReasoner().getTypes(ind, true).getFlattened();
</BUG>
if (classes.contains(fieldClass)) {

Objects.requireNonNull(parent, "Message entity cannot be null");
MessageObject parentObject = (MessageObject) parent;
OWLNamedIndividual parentInd = parentObject.getObject();
MessageModel messageModel = parentObject.getModel();
Set<OWLNamedIndividual> hasSet =
messageModel.getReasoner().getObjectPropertyValues(parentInd, hasProperty).entities().collect(Collectors.toSet());
for (OWLNamedIndividual ind : hasSet) {
Set<OWLClass> classes = messageModel.getReasoner().getTypes(ind, true).entities().collect(Collectors.toSet());
if (classes.contains(fieldClass)) {
