code: private MethodDeclarationBuilder startMethod(Protection protection, Type returnType, String methodName, final boolean isStatic) {
      return new MethodDeclarationBuilder(this.name.replace(".", "/"), new MemberFlags(isStatic, false, protection), returnType, methodName, new MethodHandler() {
        public ClassBuilder handleMethod(Method method) {
          return addMethod(isStatic, method);
        }
      }, builder);
    }
docs: internals