if (parent != null && parent.getParent() instanceof PsiMethod) {
<BUG>final PsiMethod method = (PsiMethod) parent.getParent();
final PsiReferenceList throwsList = method.getThrowsList();</BUG>
final PsiClassType[] exns = throwsList.getReferencedTypes();
<BUG>final Root [] roots = new Root [exns.length];
for (int i = 0; i != roots.length; ++ i) {
final PsiClassType exn = exns [i];
roots [i] = new Root (method, exn, false); // TODO: test for final
}</BUG>
return roots;

if (parent != null && parent.getParent() instanceof PsiMethod) {
final PsiMethod method = (PsiMethod)parent.getParent();
final PsiReferenceList throwsList = method.getThrowsList();
final PsiClassType[] exns = throwsList.getReferencedTypes();
final Root[] roots = new Root[exns.length];
for (int i = 0; i != roots.length; ++i) {
final PsiClassType exn = exns[i];
roots[i] = new Root(method, exn, false); // TODO: test for final
