please include function xrandr_status.

static AutoCloseable temp_xrandr_cacheOn() {
  xrandr_status_cacheValue = null;
  xrandr_status_cacheOn = true;
  ret autoCloseable {
    xrandr_status_cacheOn = false;
    xrandr_status_cacheValue = null;
  };
}