private static boolean isAnyNonWordCharacter(RegExpClassElement classElement) {
    return classElement instanceof RegExpSimpleClass && ((RegExpSimpleClass)classElement).getKind().equals(NON_WORD);
  }
private static boolean isAnyNonWordCharacter(RegExpClassElement classElement)