void (final @NotNull PyTryExceptStatement node) { final PyExceptPart[] exceptParts = node.getExceptParts(); boolean haveDefaultExcept = false; for (PyExceptPart part : exceptParts) { if (haveDefaultExcept) { getHolder().newAnnotation(HighlightSeverity.ERROR, PyPsiBundle.message("ANN.default.except.must.be.last")).range(part).create(); } if (part.getExceptClass() == null) { haveDefaultExcept = true; } } }