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