private boolean parseName() {
    IElementType type = myBuilder.getTokenType();
    if (type == XML_NAME) {
      addToken();

      return true;
    }

    if (type == XML_ENTITY_REF_TOKEN) {
      parseEntityRef();
      return true;
    }

    return consumeKeywordAsName(type);
  }
private boolean parseName()