optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/valuerange/descriptor/AbstractValueRangeDescriptor.java
@Override
    public boolean mightContainEntity() {
        SolutionDescriptor<Solution_> solutionDescriptor
                = variableDescriptor.getEntityDescriptor().getSolutionDescriptor();
        Class<?> variablePropertyType = variableDescriptor.getVariablePropertyType();
        for (Class<?> entityClass : solutionDescriptor.getEntityClassSet()) {
            if (variablePropertyType.isAssignableFrom(entityClass)) {
                return true;
            }
        }
        return false;
    }
@Override
    public boolean mightContainEntity() {
        SolutionDescriptor<Solution_> solutionDescriptor
                = variableDescriptor.getEntityDescriptor().getSolutionDescriptor();
        Class<?> variablePropertyType = variableDescriptor.getVariablePropertyType();
        for (Class<?> entityClass : solutionDescriptor.getEntityClassSet()) {
            if (variablePropertyType.isAssignableFrom(entityClass)) {
                return true;
            }
        }
        return false;
    }
************************************************************************