Integer (@NotNull UCallExpression constructorCall) { List<UExpression> constructorParams = constructorCall.getValueArguments(); UExpression redParam = constructorParams.get(0); Integer red = evaluateColorValue(redParam); if (red == null) return null; UExpression greenParam = constructorParams.get(1); UExpression blueParam = constructorParams.get(2); return 0 <= red && red < 256 && red.equals(evaluateColorValue(greenParam)) && red.equals(evaluateColorValue(blueParam)) ? red : null; }