code: public static IndexChangeAdapter forPrimaryType( ExecutionContext context,
                                                       NodeTypePredicate matcher,
                                                       String workspaceName,
                                                       ProvidedIndex<?> index ) {
          return new PrimaryTypeChangeAdapter(context, matcher, workspaceName, index);
      }
docs: Create an {@link IndexChangeAdapter} implementation that handles the "jcr:primaryType" property.
  
  @param context the execution context; 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 workspaceName the name of the workspace; may not be null
  @param index the local index that should be used; may not be null
  @return the new {@link IndexChangeAdapter}; never null