There are a couple ways to do this. The best is with Perforce Git Fusion, but it does have some infrastructure requirements. Nothing much, but I've found that it's enough to run afoul of ossified corporate bureaucracies. If that happens, you can fall back on git-p4, which is less capable but is included in the Git distribution and doesn't have any infrastructure requirements.
Finally, I suspect IntelliJ probably does support Perforce. I haven't used it, but I do use PyCharm which does have Perforce support, and Jetbrains' IDEs are basically all the same under the hood.