int (PsiExpression rhs) { final PsiLiteralExpression literal = (PsiLiteralExpression)rhs; final Object value = literal.getValue(); int intValue = ((Number)value).intValue(); int log = 0; while (intValue % 2 == 0) { intValue >>= 1; log++; } return log; }