int (ResourceBundle bundle, @NonNls String resource) { try { String value = getString(bundle, resource); return value == null ? 0 : Integer.parseInt(value); } catch (NumberFormatException ignored) { return 0; } }