void (@NotNull PsiBreakStatement statement) { super.visitBreakStatement(statement); final PsiStatement exitedStatement = statement.findExitedStatement(); if (exitedStatement == null) { return; } if (exitedStatement instanceof PsiSwitchBlock) { if (!SwitchUtils.isRuleFormatSwitch((PsiSwitchBlock)exitedStatement) || statement.getLabelIdentifier() != null) { return; } } else if (statement.getLabelIdentifier() == null) { return; } if (exitedStatement instanceof PsiBlockStatement blockStatement) { final PsiCodeBlock block = blockStatement.getCodeBlock(); if (ControlFlowUtils.blockCompletesWithStatement(block, statement)) { registerError(statement.getFirstChild()); } } else if (ControlFlowUtils.statementCompletesWithStatement(exitedStatement, statement)) { registerError(statement.getFirstChild()); } }