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