code: public static <T> LocalIndexBuilder<T> create( ExecutionContext context,
                                                     IndexDefinition defn,
                                                     Supplier nodeTypesSupplier,
                                                     String workspaceName,
                                                     NodeTypePredicate matcher,
                                                     DB db) {
          SimpleProblems problems = new SimpleProblems();
          validate(defn, problems);
          if (problems.hasErrors()) {
              throw new LocalIndexException(problems.toString());
          }
          PropertyType actualPropertyType = determineActualPropertyType(defn.getColumnDefinition(0));
          return new SingleColumnIndexBuilder<>(context, defn, nodeTypesSupplier,workspaceName, matcher, actualPropertyType, db);
      }
docs: Create a builder for the supplied index definition.
  
  @param context the execution context in which the index should operate; may not be null
  @param defn the index definition; may not be null
  @param nodeTypesSupplier the supplier of the {@link NodeTypes} instance; may not be null
  @param workspaceName the name of the workspace for which to build the index; may not be null
  @param matcher the node type matcher used to determine which nodes should be included in the index; may not be null
  @param db the MapDB DB instance; may not be null
  @return the index builder; never null