boolean (Set<TextMateLexerState> states, TextMateLexerState state) { for (TextMateLexerState s : states) { if (s.enterByteOffset == state.enterByteOffset && s.syntaxRule.equals(state.syntaxRule)) { return true; } } return false; }