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