@Nonnull
	public static String getCommonSuffix(@Nonnull String a, @Nonnull String b) {
		int alen = a.length();
		int blen = b.length();
		int commonLength = Math.min(alen, blen);

		// Base case where one string is empty.
		if (commonLength == 0)
			return "";

		// Find fist non-equal char and get the suffix string.
		for (int i = 1; i < commonLength + 1; i++) {
			if (a.charAt(alen - i) != b.charAt(blen - i)) {
				return a.substring(alen - i + 1);
			}
		}

		// For the shared common length both strings are equal.
		// Yield the shorter string.
		return alen < blen ? a : b;
	}
@param a
		Some string.
@param b
		Another.

@return The common suffix between the two strings.
recaf-core/src/main/java/software/coley/recaf/util/StringUtil.java