void (@NotNull LogLevel level) { switch (level) { case OFF: setLevel(Level.OFF); break; case ERROR: setLevel(Level.ERROR); break; case WARNING: setLevel(Level.WARN); break; case INFO: setLevel(Level.INFO); break; case DEBUG: setLevel(Level.DEBUG); break; case TRACE: setLevel(Level.TRACE); break; case ALL: setLevel(Level.ALL); break; } }