private static boolean isIntCast(PsiExpression expression) {
      if (expression == null) {
        return false;
      }
      if (!(expression instanceof PsiTypeCastExpression castExpression)) {
        return false;
      }
      final PsiType type = castExpression.getType();
      return PsiTypes.intType().equals(type);
    }
private static boolean isIntCast(PsiExpression expression)