How to fix JetBrains IDE scaling issues on Wayland on HiDPI screens

Making JetBrains IDEs scale properly on HiDPI screens with fractional scaling on Wayland