Description of the issue
CodeQL models CatchClauses as being part of TryStmts.
I personally find this counter-intuitive since the {} braces of the try {} block do not enclose the catch() {}in any way.
Here catch(){} would be enclosed by try {}
import java
from CatchClause c, TryStmt try
where c.getEnclosingStmt() = try
select c, try
Link to query:
https://lgtm.com/query/2349457352250693633/