Added fix for incorrect detection of throw as function definition
Shorter fix for ignoring throw keyword as function in java