InspectionProfileEntry () { ConstantOnWrongSideOfComparisonInspection inspection = new ConstantOnWrongSideOfComparisonInspection(); final boolean constantShouldGoLeft = StringUtil.containsIgnoreCase(getTestName(false), "rhs"); inspection.myConstantShouldGoLeft = constantShouldGoLeft; inspection.myIgnoreNull = constantShouldGoLeft; return inspection; }