void (@NotNull PsiThrowStatement statement) { super.visitThrowStatement(statement); final PsiExpression exception = statement.getException(); if (exception == null) { return; } final PsiType type = exception.getType(); if (type == null) { return; } final String text = type.getCanonicalText(); if (exceptions.contains(text)) { registerStatementError(statement, type); } }