boolean (@NotNull List<ZenCodingToken> tokens, @NotNull ZenCodingGenerator generator) { for (ZenCodingToken token : tokens) { if (token instanceof TextToken && !(generator instanceof XmlZenCodingGenerator)) { return false; } } return true; }