final PsiExpression exn = aThrow.getException();
return new Root[]{new Root (aThrow.getParent(), exn.getType(), isExactExnType(exn))};
}</BUG>
if (element instanceof PsiKeyword) {
<BUG>final PsiKeyword kwd = (PsiKeyword) element;
if (PsiKeyword.THROWS.equals (kwd.getText())) {
final PsiElement parent = kwd.getParent();</BUG>
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();

final PsiExpression exn = aThrow.getException();
return new Root[]{new Root(aThrow.getParent(), exn.getType(), isExactExnType(exn))};
}
if (element instanceof PsiKeyword) {
final PsiKeyword kwd = (PsiKeyword)element;
if (PsiKeyword.THROWS.equals(kwd.getText())) {
final PsiElement parent = kwd.getParent();
if (parent != null && parent.getParent() instanceof PsiMethod) {
final PsiMethod method = (PsiMethod)parent.getParent();
final PsiReferenceList throwsList = method.getThrowsList();
