boolean (Lexer lexer, IElementType tokenType) { final IElementType[] stopTokens = myStopTokens.get(lexer); if (stopTokens == null) return false; return ArrayUtil.indexOfIdentity(stopTokens, tokenType) != -1; }