boolean disable() {
        activations--;
        if (activations < 0) {
          throw new IllegalStateException("disable() called, but there is no activation on the current thread.");
        } else if (activations == 0) {
          try {
            mockControl.disable();
            return true;
          } catch (MockitoException ex) {
            throw cannotCreateMockException(mockControl.getType(), ex);
          }
        }
        return false;
      }
Resolves the inline mock maker of Mockito, via different ways, depending on the Mockito version.

@return The inline mock maker of Mockito
spock-core/src/main/java/org/spockframework/mock/runtime/mockito/MockitoMockMakerImpl.java