@Override
    public @NotNull SimpleTextAttributes getTextAttributes() {
      synchronized (myFragments) {
        return myFragments.get(myIndex).attributes;
      }
    }
@Override
    public @NotNull SimpleTextAttributes getTextAttributes()