I can understand that such behavior might be distracting or irritating for some people in a public restroom setting.
If you find someone tapping their foot in the next stall bothersome or uncomfortable, you have a few options:
Ignore it: If the tapping isn't causing any harm or disturbance, you might choose to ignore it and focus on your own business.
Complete your task and leave: Finish using the restroom as quickly as you can, so you can move on from the situation.
Politely address the situation: If you feel comfortable doing so, you can kindly ask the person to stop tapping their foot. You might say something like, "Excuse me, but the tapping is a bit distracting. Could you please stop?" However, remember that interactions in public restrooms can sometimes be awkward, so gauge the situation before engaging.
Report it (if necessary): If you feel that the behavior is excessively disruptive or concerning, and it's appropriate to do so, you might report it to a staff member or authority figure, especially in a public restroom with attendants.
Remember, every situation is unique, and it's essential to use your judgment to handle the situation in a way that feels appropriate and safe for you and those around you.