class NodesSpecifier {

  public Set<String> getMatchingNodesByRole(NodeRoleDimension roleDimension, Set<String> nodes) {
    return nodes.stream()
        .filter(n -> nodeNameInMatchingRole(n, roleDimension))
        .collect(ImmutableSet.toImmutableSet());
  }

  public  NodesSpecifier(String expression, boolean caseSensitive);
  @JsonCreator public  NodesSpecifier(String expression);

}