void (Map<Object, Object> args) { if (args == null) return; String name = (String)args.get("name"); Object type = args.get("type"); Object doc = args.get("doc"); Object docUrl = args.get("docUrl"); Boolean isStatic = (Boolean)args.get("isStatic"); Map<@NonNls Object, Object> getter = new HashMap<>(); getter.put("name", GroovyPropertyUtils.getGetterNameNonBoolean(name)); getter.put("type", type); getter.put("isStatic", isStatic); getter.put("doc", doc); getter.put("docUrl", docUrl); method(getter); Map<@NonNls Object, @NonNls Object> setter = new HashMap<>(); setter.put("name", GroovyPropertyUtils.getSetterName(name)); setter.put("type", "void"); setter.put("isStatic", isStatic); setter.put("doc", doc); setter.put("docUrl", docUrl); final HashMap<Object, Object> param = new HashMap<>(); param.put(name, type); setter.put("params", param); method(setter); }