private int countLeadingSpaces(String line) {
		int count = 0;
		for (char ch : line.toCharArray()) {
			if (ch != ' ' && ch != '\t') break;
			count++;
		}
		return count;
	}
Count leading spaces int.

@param line the line
@return the int
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/PropertyResolverUtils.java