@Override
  public Object @NotNull [] getDependencies() {
    final PsiElement declaration = getDeclaration();
    if (myElement != null && myElement.isValid()) {
      return new Object[]{DomUtil.getRoot(myElement), declaration};
    }
    return new Object[]{declaration};
  }
@Override
  public Object @NotNull [] getDependencies()