@SafeVarargs
    protected final Token nextTokenSensitive(ListIterator<Token> iterator, Class<? extends Token>... excludes) {
        Token token = nextToken(iterator);

        if (token instanceof NameToken) {
            return token;
        }

        if (excludes != null && isTokenClass(token, excludes)) {
            return token;
        }

        if (token.isNamedToken()) {
            return new NameToken(token.getMeta());
        }

        return token;
    }
Processes named token and returns them as named tokens.
jphp-core/src/org/develnext/jphp/core/syntax/generators/Generator.java