Since working with Java, sometimes my services crash and the IDE does not recognize it. To kill the remaining Java processes, I use:
wmic process where "commandline like '%%java%%'" delete
That’s it. Interestingly, it does not kill IntelliJ IDEA, only the services. I guess, IntelliJ uses a different JVM name.