CharPattern () { return with(new PatternCondition<Character>("letterOrDigit") { @Override public boolean accepts(final @NotNull Character character, final ProcessingContext context) { return Character.isLetterOrDigit(character.charValue()); } }); }