public void setFilterSimple(@NotNull PsiElement element, @NotNull NodeFilter filter) {
    context.getPattern().getHandler(element).setFilter(filter);
  }
public void setFilterSimple(@NotNull PsiElement element, @NotNull NodeFilter filter)