void (@NotNull PsiEmptyStatement statement) { super.visitEmptyStatement(statement); final PsiElement parent = statement.getParent(); if (parent instanceof PsiCodeBlock) { final PsiElement semicolon = statement.getFirstChild(); if (semicolon == null) { return; } registerError(semicolon); } }