class MlagPropertiesAnswerer extends Answerer {

  @VisibleForTesting
  @Nonnull
  static TableAnswerElement computeAnswer(
      Set<String> nodes, Set<String> mlagIds, SortedMap<String, Configuration> configs) {
    ImmutableList<NodeToMlags> mlagConfigs =
        nodes.stream()
            .map(configs::get)
            .filter(Objects::nonNull)
            // Get matching MLAGs at each node
            .map(
                c ->
                    new NodeToMlags(
                        c.getHostname(),
                        c.getMlags().values().stream()
                            .filter(mlag -> mlagIds.contains(mlag.getId()))
                            .collect(Collectors.toList())))
            .filter(mc -> !mc._mlags.isEmpty())
            .collect(ImmutableList.toImmutableList());
    TableAnswerElement answer = new TableAnswerElement(getMetadata());
    mlagConfigs.forEach(
        c -> c._mlags.forEach(mlag -> answer.addRow(configToRow(c._hostname, mlag))));
    return answer;
  }

    MlagPropertiesAnswerer(Question question, IBatfish batfish);

}