private static boolean isSimplifiableAssert(PsiIfStatement ifStatement) {
    if (ifStatement.getElseBranch() != null) {
      return false;
    }
    final PsiStatement thenBranch = ControlFlowUtils.stripBraces(ifStatement.getThenBranch());
    if (!(thenBranch instanceof PsiAssertStatement assertStatement)) {
      return false;
    }
    return assertStatement.getAssertCondition() != null;
  }
private static boolean isSimplifiableAssert(PsiIfStatement ifStatement)