class CommunitySetExprVarCollector implements CommunitySetExprVisitor<Set<CommunityVar>, Configuration> {

  @Override
  public Set<CommunityVar> visitInputCommunities(
      InputCommunities inputCommunities, Configuration arg) {
    return toCommunityVarSet(configToCommunityContext(arg).getInputCommunitySet());
  }

}