class StudioSdkInstallerUtil {

  @VisibleForTesting
  @NotNull
  InstallerFactory doCreateInstallerFactory(@NotNull AndroidSdkHandler sdkHandler) {
    InstallerFactory factory;
    InstallerFactory basicFactory = new BasicInstallerFactory();
    if (mySettingsController.getDisableSdkPatches()) {
      factory = basicFactory;
    }
    else {
      factory = new PatchInstallerFactory();
      factory.setFallbackFactory(basicFactory);
    }
    factory.setListenerFactory(new StudioSdkInstallListenerFactory(sdkHandler));
    return factory;
  }

  private  StudioSdkInstallerUtil();
  @VisibleForTesting  StudioSdkInstallerUtil(@NotNull SettingsController settingsController);

}