@Override
    public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) {
        return subject.getCombinedParents(this.queryOptions).stream()
                .map(ref -> ref.resolveLp().join())
                .filter(p -> p instanceof CalculatedSubject)
                .map(p -> (CalculatedSubject) p)
                .collect(Collectors.toList());
    }
The contexts to resolve inheritance in.
sponge/src/main/java/me/lucko/luckperms/sponge/service/inheritance/SubjectInheritanceGraph.java