public IStaticMock makeStaticMock(IMockCreationSettings settings) throws CannotCreateMockException {
    if (!settings.isStaticMock()) {
      throw new IllegalArgumentException("Can't mock instance mocks with makeStaticMock().");
    }
    return makeMockInternal(settings, IMockMaker::makeStaticMock);
  }
Mocks the static methods of the type provided by the {@code settings}.

@param settings the mock settings
@return the {@link IStaticMock} object representing the static mocked class
@throws CannotCreateMockException if a mock with the provided settings can't be created.
spock-core/src/main/java/org/spockframework/mock/runtime/MockMakerRegistry.java