IElementType (int steps) { if (eof()) { // ensure we skip over whitespace if it's needed return null; } int cur = myLexPosition; while (steps > 0) { ++cur; while (cur < myShrunkSequence.size() && isWhiteSpaceOnPos(cur)) { cur++; } steps--; } return cur < myShrunkSequence.size() ? myShrunkSequence.get(cur).elementType : null; }