Things I wish Java had: String.endsWith() overloaded with a version that takes as many endings as you give it and returns true if the String ends with any of them.

Example implementation and use case in the image.

If we're opposed to overloading then it could be String.endsWithAnyOf() or something along those lines.