void (Map<Object, Object> args) { final Object toThrow = args.get("throws"); if (toThrow instanceof List) { final ArrayList<String> list = new ArrayList<String>(); args.put("thr<caret>ows", list); } else if (toThrow != null) { args.put("throws", Collections.singleton(toThrow)); } myMethods.add(args); }