float (@NonNls @NotNull String propertyName, float defaultValue) { Object value = UIManager.get(propertyName); if (value instanceof Float) return (Float)value; if (value instanceof Double) return ((Double)value).floatValue(); if (value instanceof String) { try { return Float.parseFloat((String)value); } catch (NumberFormatException ignore) {} } return defaultValue; }