String (@Nls String text, final int tabLength) { @Nls StringBuilder buf = new StringBuilder(text.length()); for (int idx = 0; idx < text.length(); idx++) { char ch = text.charAt(idx); if (ch == '\t') { for (int i = 0; i < tabLength; i++) buf.append(' '); } else { buf.append(ch); } } return buf.toString(); }