public static boolean isIntLiteral(PsiExpression rhs) {
    if (!(rhs instanceof PsiLiteralExpression literal)) {
      return false;
    }
    final Object value = literal.getValue();
    if (!(value instanceof Number)) {
      return false;
    }
    return !(value instanceof Double) && !(value instanceof Float);
  }
public static boolean isIntLiteral(PsiExpression rhs)