private void processElement(@NotNull PsiElement element) {
        CommonDataflow.DataflowResult result = CommonDataflow.getDataflowResult(element);
        if (result == null) return;

        PsiFile file = holder.getFile();
        for (TextRange range : result.getUnreachableRanges()) {
          PsiElement psiElement = file.findElementAt(range.getStartOffset());
          while (psiElement != null && !psiElement.getTextRange().contains(range)) {
            psiElement = psiElement.getParent();
          }
          if (psiElement != null) {
            if (psiElement.getTextRange().equals(range) && shouldSuppress(psiElement)) continue;
            if (element != StreamEx.iterate(psiElement, Objects::nonNull, PsiElement::getParent)
              .findFirst(e -> e instanceof PsiClass || 
                              e instanceof PsiMethod method && !method.isConstructor()).orElse(null)) {
              // Nested method or class: will be reported for the corresponding anchor
              continue;
            }
            holder.registerProblem(psiElement, range.shiftLeft(psiElement.getTextRange().getStartOffset()),
                                   JavaBundle.message("inspection.data.flow.unreachable.code.display.name"));
          }
        }
      }
private void processElement(@NotNull PsiElement element)