private @Nullable String indentWith(@NotNull IndentType indentType, int tabSize) {
      StringBuilder indented = new StringBuilder();
      for (int i = 0; i < myLines.length; i++) {
        if (i != 0) indented.append('\n');
        String line = myLines[i];
        int nSpaces = mySpaces[i];
        if (nSpaces == -1) {
          indented.append(line);
          continue;
        }
        int nTabs = myTabs[i];
        String indent = createIndent(nSpaces, nTabs, indentType, tabSize);
        if (indent == null) return null;
        indented.append(indent);
        indented.append(line, nSpaces + nTabs, line.length());
      }
      return indented.toString();
    }
private @Nullable String indentWith(@NotNull IndentType indentType, int tabSize)