Really? I use IntelliJ on an external 4k display every day at work with a 2016 MBP. I seem to recall having some issues in early 2017 (when I started at $company), but nowadays it works fine.
EDIT: I'm quite sure I have scaled resolution but can't check.