public static Collection<MessageFragmentStyle> increaseOffset(Collection<MessageFragmentStyle> list, int offset) {
    for (MessageFragmentStyle messageFragmentStyle : list) {
      messageFragmentStyle.setOffset(messageFragmentStyle.getOffset() + offset);
    }
    return list;
  }
Apply styles on StyledDocument using regular expression

@param style
         style to apply
@param text
         text to be tested by regular expression, fragment from document
@param regex
         regular expression
@param group
         group to apply
olv-core/src/main/java/pl/otros/logview/gui/message/MessageColorizerUtils.java