code: public static Builder getSettingsBuilder(String nodeName,
              boolean clientTransportSniff, String clusterName) {
          boolean isNullClusterName = Objects.isNull(clusterName);
          Builder builder = Settings.builder().put(NODE_NAME, nodeName)
                  .put(CLIENT_TRANSPORT_SNIFF, clientTransportSniff)
                  .put(CLIENT_TRANSPORT_IGNORE_CLUSTER_NAME,
                          isNullClusterName);
          if (!isNullClusterName)
              builder.put(CLUSTER_NAME, clusterName);
          return builder;
      }
docs: Gets settings builder.
  
  @param nodeName             the node name
  @param clientTransportSniff the client transport sniff
  @param clusterName          the cluster name
  @return the settings builder