String (String text, int highlightStartOffset, int highlightEndOffset, boolean isDisabled, boolean strikeout, boolean isDisabledBeforeHighlight, Color background) { String taggedText; if (highlightStartOffset != -1 && highlightEndOffset != -1) { StringBuilder sb = new StringBuilder(); if (isDisabledBeforeHighlight) { sb.append("<disabled>"); } sb.append(text, 0, highlightStartOffset); if (isDisabledBeforeHighlight) { sb.append("</disabled>"); } sb.append("<highlight>"); sb.append(text, highlightStartOffset, highlightEndOffset); sb.append("</highlight>"); sb.append(text, highlightEndOffset, text.length()); taggedText = sb.toString(); } else { taggedText = text; } String resultText = "Text: (" + taggedText + "), " + "Disabled: " + isDisabled + ", " + "Strikeout: " + strikeout + ", " + "Green: " + KotlinParameterInfoWithCallHandlerBase.GREEN_BACKGROUND.equals(background); result.add(resultText); // return value not used, just return something return resultText; }