public String trimIndent(String text) {
		if (text == null) {
			return null;
		}
		final String newLine = "\n";
		String[] lines = text.split("\\r?\\n");
		int minIndent = resolveMinIndent(lines);
		try {
			return Arrays.stream(lines)
					.map(line -> line.substring(Math.min(line.length(), minIndent)))
					.collect(Collectors.joining(newLine));
		}
		catch (Exception ex) {
			LOGGER.warn(ex.getMessage());
			return text;
		}
	}
Returns a string where all leading indentation has been removed from each line.
It detects the smallest common indentation of all the lines in the input string,
and removes it.
If the input text is {@code null}, the method returns {@code null}.

@param text The original string with possible leading indentation.
@return The string with the smallest common leading indentation removed from each line,
or {@code null} if the input text is {@code null}.
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/PropertyResolverUtils.java