private void visitSwitchBlock(@NotNull PsiSwitchBlock statement) {
      final PsiCodeBlock body = statement.getBody();
      if (body == null) {
        return;
      }
      final PsiStatement[] statements = body.getStatements();
      boolean labelSeen = false;
      for (int i = statements.length - 1; i >= 0; i--) {
        final PsiStatement child = statements[i];
        if (child instanceof PsiSwitchLabelStatementBase label) {
          PsiElement defaultElement = SwitchUtils.findDefaultElement(label);
          if (defaultElement != null) {
            if (labelSeen) {
              registerError(defaultElement.getFirstChild(), label, JavaElementKind.fromElement(statement).subject());
            }
            return;
          }
          else {
            labelSeen = true;
          }
        }
      }
    }
private void visitSwitchBlock(@NotNull PsiSwitchBlock statement)