code: public JavaWriter endType() throws IOException {
      popScope(Scope.TYPE_DECLARATION, Scope.INTERFACE_DECLARATION);
      types.pop();
      indent();
      out.write("}\n");
      return this;
    }
docs: Completes the current type declaration.