private static void detectAllSdks(@NotNull ProgressIndicator indicator, @NotNull DetectedSdkListener callback) {
    try {
      callback.onSearchStarted();
      indicator.setIndeterminate(false);
      List<SdkType> types = SdkType.getAllTypeList();
      for (int i = 0; i < types.size(); i++) {
        indicator.setFraction((float)i / types.size());
        indicator.checkCanceled();
        if (isDetectorEnabled()) {
          detect(types.get(i), indicator, callback);
        }
      }
    }
    finally {
      callback.onSearchCompleted();
    }
  }
private static void detectAllSdks(@NotNull ProgressIndicator indicator, @NotNull DetectedSdkListener callback)