@Override
  public boolean isInplaceRenameAvailable(@NotNull PsiElement element, PsiElement context) {
    return element instanceof XsltVariable && element.getUseScope() instanceof LocalSearchScope;
  }
@Override
  public boolean isInplaceRenameAvailable(@NotNull PsiElement element, PsiElement context)