class CommunityMatchExprVarCollector implements CommunityMatchExprVisitor<Set<CommunityVar>, Configuration> {

  @Override
  public Set<CommunityVar> visitCommunityMatchRegex(
      CommunityMatchRegex communityMatchRegex, Configuration arg) {
    return ImmutableSet.of(CommunityVar.from(communityMatchRegex.getRegex()));
  }

}