private static void updateIndent(@Nonnull Deque<Pair<String, String>> currentClass, int indent, @Nonnull Supplier<String> failStr, int i) throws InvalidMappingException {
		if (indent > currentClass.size()) {
			throw new InvalidMappingException(failStr.get() + i);
		}
		while (currentClass.size() > indent) {
			currentClass.pop();
		}
	}
@param currentClass
		Deque of the current 'context' <i>(what class are we building mappings for)</i>.
@param indent
		Current level of indentation. Should be equal to or less than the size of the {@code currentClass} {@link Deque}.
@param failStr
		Message to include in the thrown invalid mapping exception if the indentation state is invalid.
@param i
		Current offset into the mappings file.

@throws InvalidMappingException
		Thrown when the indentation state does not match the current class context.
recaf-core/src/main/java/software/coley/recaf/services/mapping/format/EnigmaMappings.java