@Nonnull
	public static String pretty(@Nonnull Type type) {
		int sort = type.getSort();
		String suffix = null;
		String name;
		if (sort == Type.ARRAY) {
			suffix = "[]".repeat(type.getDimensions());
			type = type.getElementType();
			sort = type.getSort();
		} else if (sort == Type.METHOD) {
			List<String> args = Arrays.stream(type.getArgumentTypes())
					.map(Types::pretty)
					.toList();
			return "(" + String.join(", ", args) + ") " + pretty(type.getReturnType());
		}
		if (sort <= Type.DOUBLE) {
			name = getSortName(sort);
		} else {
			name = type.getInternalName();
		}
		String pretty = StringUtil.shortenPath(name);
		if (suffix != null) {
			pretty += suffix;
		}
		return pretty;
	}
@param type
		Input type.

@return Pretty-printed type.
recaf-core/src/main/java/software/coley/recaf/util/Types.java