private static boolean flagExcludeTest(Flag flag, String contextKey, QueryOptions filter, ImmutableContextSet contextSet) {
        // return true (negative result) if the explicit *include* flag is not set, and if the context set doesn't contain the required context key.
        return !filter.flag(flag) && !contextSet.containsKey(contextKey);
    }
Base implementation of {@link NodeMap} query methods.
common/src/main/java/me/lucko/luckperms/common/model/nodemap/NodeMapBase.java