public function importsConst($const_name = NULL) {
    if (!$this->useConst) {
      return FALSE;
    }
    if ($const_name) {
      foreach ($this->getDeclarations() as $declaration) {
        if ($declaration->getName()->getPath() === $const_name) {
          return TRUE;
        }
      }
      return FALSE;
    }
    else {
      return TRUE;
    }
  }