I'm not sure this still counts as "debouncing". I thought that was only where you took a time average of a sensor value.
I'd change this comment to something like this:

// We only want to measure gravity, so ignore events when there is significant acceleration in addition
// to gravity because this means the user is moving the phone.