boolean (@NotNull IElementType previousTokenType, @NotNull IElementType tokenType) { for (TokenSet set : myTokenSets) { if (set.contains(previousTokenType) && set.contains(tokenType)) { return false; } } return true; }