@Override
  public @NotNull String getText() {
    TreeElement firstChildNode = getFirstChildNode();
    if (firstChildNode == null) {
      return "";
    }
    else if (firstChildNode == getLastChildNode()) {
      if (firstChildNode instanceof ForeignLeafPsiElement) {
        return "";
      }
      return firstChildNode.getText();
    }
    return new String(textToCharArray());
  }
@Override
  public @NotNull String getText()