public String filter(@Nullable String string, boolean shortenPath, boolean escape, boolean maxLength) {
		if (string == null) return null;
		if (shortenPath) string = filterShorten(string);
		if (escape) string = filterEscape(string);
		if (maxLength) string = filterMaxLength(string);
		return string;
	}
@param string
		Some text to filter.
@param shortenPath
		Apply path shortening filtering.
@param escape
		Apply escaping.
@param maxLength
		Apply max length cap.

@return Filtered text based on current config.
recaf-core/src/main/java/software/coley/recaf/services/text/TextFormatConfig.java