double () { String rawValue = Registry.stringValue("indexing.progress.indicator.power"); if ("-".equals(rawValue)) { return 1.0; } try { return Double.parseDouble(rawValue); } catch (NumberFormatException e) { return 1.0; } }