class CompletionMetadataUtils {

  @VisibleForTesting
  static String interfaceDisplayString(Configuration configuration, Interface iface) {
    String suffix =
        configuration.getHumanName() == null
            ? ""
            : String.format(" (%s)", configuration.getHumanName());
    return String.format("%s[%s]%s", configuration.getHostname(), iface.getName(), suffix);
  }

  private  CompletionMetadataUtils();

}