public function appendMethod($method) {
    if (is_string($method)) {
      $method = InterfaceMethodNode::create($method);
    }
    $this->statements->lastChild()->before($method);
    FormatterFactory::format($this);
    return $this;
  }