String (String textToMarkup, final Pattern insideHtmlTagPattern, final String option, Color textColor, Color backgroundColor) { final int styleIdx = textToMarkup.indexOf("<style"); final int styleEndIdx = textToMarkup.indexOf("</style>"); if (styleIdx < 0 || styleEndIdx < 0) { return markupInText(textToMarkup, insideHtmlTagPattern, option, textColor, backgroundColor); } return markup(textToMarkup.substring(0, styleIdx), insideHtmlTagPattern, option, textColor, backgroundColor) + markup(textToMarkup.substring(styleEndIdx + STYLE_END.length()), insideHtmlTagPattern, option, textColor, backgroundColor); }