Add detection of main method in MethodTreeImpl
SONARJAVA-671 Fix FP on main method for S00112/Raw exceptions