writer.println();
if (!isInterface) {
writer.println("@Override");
}
writer.println(method.getReadableDeclaration(false, true, true, true, true) + " {");
writer.indent();
writer.println("ensureInstance();");
if (method.getReturnType() != JPrimitiveType.VOID) {
writer.print("return ");
}
writer.print("instance." + method.getName() + '(');