So, in IntelliJ there is the back button, and keyboard Opt-Cmd-Left and the corresponding forward versions. What would be also fantastic is a two finger swipe. Basically what we can do in Safari to go back or forward on web pages. That two finger swipe (sometimes people change it to other swipes) I am so used to that I really do it in every app I use. iOS7 even added it to Mobile Safari as well as the Mail app.
I guess, in theory, it doesn't just have to be the Mac version, it could be all versions.