class DebugSectionUtils {

    static <U> U applyToLimboPlayersMap(LimboService limboService, Function<Map, U> function) {
        Field limboPlayerEntriesField = getLimboPlayerEntriesField();
        if (limboPlayerEntriesField != null) {
            try {
                return function.apply((Map) limboEntriesField.get(limboService));
            } catch (Exception e) {
                ConsoleLogger.logException("Could not retrieve LimboService values:", e);
            }
        }
        return null;
    }

    private  DebugSectionUtils();

}