public boolean isValidGroupName(String name, final @Nullable RegExpGroup group) {
    final RegExpLanguageHost host = findRegExpHost(group);
    return host == null || host.isValidGroupName(name, group);
  }
public boolean isValidGroupName(String name, final @Nullable RegExpGroup group)