@Override
    public void copyInheritanceNodesTo(Collection<? super InheritanceNode> collection, QueryOptions filter) {
        for (Map.Entry<ImmutableContextSet, SortedSet<InheritanceNode>> e : inheritanceMap().entrySet()) {
            if (!filter.satisfies(e.getKey(), defaultSatisfyMode())) {
                continue;
            }

            if (inheritanceNodesIncludeTest(filter, e.getKey())) {
                collection.addAll(e.getValue());
            }
        }
    }
Base implementation of {@link NodeMap} query methods.
common/src/main/java/me/lucko/luckperms/common/model/nodemap/NodeMapBase.java