Attempt 2 to fix the format. Improved checkProblemticPathJava().
Merge the (hopefully) better formatting