public void setText(String[] lines, String prefix) {
    myLines = lines;
    myTextLength = 0;
    for (String line : lines) {
      myTextLength += line.length();
    }
    myPrefix = prefix;

    myWrapsCalculated = false;
    myHeightCalculated = -1;
    myWrapsCalculatedForWidth = -1;
  }
public void setText(String[] lines, String prefix)