public static int getExpBase2(PsiExpression rhs) {
    final PsiLiteralExpression literal = (PsiLiteralExpression)rhs;
    final Object value = literal.getValue();
    if (value == null) {
      return 0;
    }
    final int intValue = ((Number)value).intValue() & 31;
    int exp = 1;
    for (int i = 0; i < intValue; i++) {
      exp <<= 1;
    }
    return exp;
  }
public static int getExpBase2(PsiExpression rhs)