private static boolean parseQName(PsiBuilder builder) {
    if (builder.getTokenType() == XPathTokenTypes.NCNAME) {
      builder.advanceLexer();
      if (builder.getTokenType() == XPathTokenTypes.COL) {
        builder.advanceLexer();
        checkMatches(builder, XPathTokenTypes.NCNAME, XPathBundle.message("parsing.error.ncname.expected"));
      }
      return true;
    }
    return false;
  }
private static boolean parseQName(PsiBuilder builder)