private CompilerDiagnostic.Level mapKind(Diagnostic.Kind kind) {
				switch (kind) {
					case ERROR:
						return CompilerDiagnostic.Level.ERROR;
					case WARNING:
					case MANDATORY_WARNING:
						return CompilerDiagnostic.Level.WARNING;
					case NOTE:
					case OTHER:
					default:
						return CompilerDiagnostic.Level.INFO;
				}
			}
@param listener
		Optional listener to wrap.
@param diagnostics
		List to add diagnostics to.

@return Listener to encompass recording behavior and the user defined listener.
recaf-core/src/main/java/software/coley/recaf/services/compile/JavacCompiler.java