@Override
  public int getResourceVariablesCount() {
    int count = 0;
    for (PsiElement child = getFirstChild(); child != null; child = child.getNextSibling()) {
      if (child instanceof PsiResourceListElement) ++count;
    }
    return count;
  }
@Override
  public int getResourceVariablesCount()