@Override public boolean replaceChild(Element child, Element by) { if (child == getBody()) { setBody((Statement.Block)by); return true; } if (child == getName()) { setName((Identifier)by); return true; } if (replaceChild(args, Arg.class, this, child, by)) return true; if (replaceChild(thrown, TypeRef.class, this, child, by)) return true; if (replaceChild(initializers, FunctionCall.class, this, child, by)) return true; return super.replaceChild(child, by); }