void (@NotNull PsiExpression expression) { if (!ExpressionUtils.isAutoBoxed(expression) || isAutoBoxingFromCache(expression) || !isInsideEqualsOrHashCode(expression)) { return; } final PsiType expectedType = ExpectedTypeUtils.findExpectedType(expression, false, true); if (TypeUtils.getType(CommonClassNames.JAVA_LANG_BOOLEAN, expression).equals(expectedType) || TypeUtils.getType(CommonClassNames.JAVA_LANG_BYTE, expression).equals(expectedType)) { return; } registerError(expression, expression, "autoboxing"); }