void (@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; } } }