private void _append(@NotNull @Nls String fragment,
                       final @NotNull SimpleTextAttributes attributes,
                       @Nullable FragmentTextClipper clipper,
                       boolean isMainText) {
    synchronized (myFragments) {
      myCurrentFragment = new ColoredFragment(fragment, attributes, this, clipper);
      myFragments.add(myCurrentFragment);
      if (isMainText) {
        myMainTextLastIndex = myFragments.size() - 1;
      }
    }
  }
private void _append(@NotNull @Nls String fragment,
                       final @NotNull SimpleTextAttributes attributes,
                       @Nullable FragmentTextClipper clipper,
                       boolean isMainText)