private static void update(ProgressIndicator indicator, boolean indeterminate, double fraction) {
    if (indicator instanceof PanelProgressIndicator) {
      ((PanelProgressIndicator)indicator).update(getScanningPackagesMessage(), indeterminate, fraction);
    } else {
      if (fraction != -1) {
        indicator.setFraction(fraction);
      }
    }
  }
private static void update(ProgressIndicator indicator, boolean indeterminate, double fraction)