I am developing a plugin, which interacts with Git VCS and I wondering if there a simple way to find out a programming language used in this file without name (therefore, I can't simply look for file extension in file name).
Because of my plugin processing commits found in project's history (represented by ```GitCommit``` objects) and commits made from IntelliJ UI (represented by ```Change``` objects collection obtained from ```CheckinPanel```), I need to be able to figure out a file language from ```Change``` object somehow.
If there is a some magic utils class which would allow me to write something like
commit.getChanges().stream().filter(x -> SomeMagicUtilsClass.getFIleLanguage(x).equals(Java.INSTANCE)....;
it would be totally a charm!