void (@NotNull PsiContinueStatement statement) { final PsiIdentifier labelIdentifier = statement.getLabelIdentifier(); if (labelIdentifier == null) return; final String labelText = labelIdentifier.getText(); if (labelText == null || labelText.isEmpty()) return; final PsiStatement exitedStatement = statement.findContinuedStatement(); if (exitedStatement == null) return; final PsiStatement labelEnabledParent = PsiTreeUtil.getParentOfType(statement, PsiLoopStatement.class); if (labelEnabledParent == null) return; if (!exitedStatement.equals(labelEnabledParent)) return; registerError(labelIdentifier); }