@Override
  public @NotNull List<@NotNull PsiFragment> getFragments() {
    final List<PsiFragment> result = new ArrayList<>();
    PsiElement child = getFirstChild();
    while (child != null) {
      if (child instanceof PsiFragment) result.add((PsiFragment)child);
      child = child.getNextSibling();
    }
    return result;
  }
@Override
  public @NotNull List<@NotNull PsiFragment> getFragments()