better handling of case when file in the diff result is not a Java file