IndentType (String @NotNull [] lines, int indent) { IndentType indentType = null; for (int i = 0; i < lines.length; i++) { String line = lines[i]; if (!isContentPart(lines, i, line)) continue; for (int j = 0; j < indent; j++) { char c = line.charAt(j); IndentType currentType = IndentType.of(c); if (currentType == null) return null; if (indentType == null) { indentType = currentType; } else if (indentType != currentType) { return null; } } } return indentType; }