private boolean shouldSuppress(PsiElement psiElement) {
        if (psiElement instanceof PsiExpressionStatement statement && isTrivialExpression(statement.getExpression()) &&
            psiElement.getParent() instanceof PsiSwitchLabeledRuleStatement rule && rule.isDefaultCase()) {
          // Default case in switch might be required by compiler
          return true;
        }
        Condition condition = findCondition(psiElement); 
        if (condition != null) {
          if (ConstantValueInspection.isFlagCheck(condition.expression)) {
            return true;
          }
          if (respectConstantValueSuppression &&
              (SuppressionUtil.isSuppressed(condition.expression, "ConstantValue") ||
               SuppressionUtil.isSuppressed(condition.expression, "ConstantConditions"))) {
            return true;
          }
        }
        if (psiElement instanceof PsiCodeBlock block) {
          if (block.getParent() instanceof PsiCatchSection catchSection) {
            PsiType type = catchSection.getCatchType();
            if (mayCover(type, "java.lang.LinkageError") ||
                mayCover(type, "java.lang.VirtualMachineError")) {
              return true;
            }
          }
          else {
            if (block.getStatementCount() == 1) {
              psiElement = block.getStatements()[0];
            }
          }
        }
        return psiElement instanceof PsiThrowStatement || ignoreTrivialReturns && isTrivialReturn(psiElement);
      }
private boolean shouldSuppress(PsiElement psiElement)