int (@NotNull List<ChainedCallChunk> chunks) { String commonIndent = null; for (ChainedCallChunk chunk : chunks) { if (isMethodCall(chunk) && isBuilderMethod(chunk)) { String currIndent = chunk.getIndentString(); if (currIndent != null) { if (commonIndent == null) { commonIndent = currIndent; } else if (commonIndent.startsWith(currIndent)) { commonIndent = currIndent; } } } } return commonIndent != null ? commonIndent.length() : -1; }