@Override public boolean enterCatchNode(CatchNode catchNode) { Identifier exception = ModelElementFactory.create(parserResult, catchNode.getException()); if (exception != null) { DeclarationScopeImpl inScope = modelBuilder.getCurrentDeclarationScope(); CatchBlockImpl catchBlock = new CatchBlockImpl(inScope, exception, new OffsetRange(catchNode.getStart(), catchNode.getFinish()), parserResult.getSnapshot().getMimeType()); inScope.addDeclaredScope(catchBlock); modelBuilder.setCurrentObject(catchBlock); } return super.enterCatchNode(catchNode); }