public void insert(int index, @NotNull @Nls String fragment, @NotNull SimpleTextAttributes attributes) {
    myTexts.add(index, fragment);
    myCachedToString = null;
    myAttributes.add(index, attributes);
  }
public void insert(int index, @NotNull @Nls String fragment, @NotNull SimpleTextAttributes attributes)