private void buildInitializerMethods() {
    MethodInfo initializerMethod = createMethod(InternalIdentifiers.INITIALIZER_METHOD, MethodKind.INITIALIZER);
    if (initializerMethod != null) {spec.setInitializerMethod(initializerMethod);}
    MethodInfo sharedInitializerMethod = createMethod(InternalIdentifiers.SHARED_INITIALIZER_METHOD, MethodKind.SHARED_INITIALIZER);
    if (sharedInitializerMethod != null) {spec.setSharedInitializerMethod(sharedInitializerMethod);}
  }
Builds a SpecInfo from a Class instance.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/SpecInfoBuilder.java