void (@Nullable final PyExpression rightExpression) { if (rightExpression == null) { return; } if (rightExpression instanceof PyParenthesizedExpression) { inspectValues(((PyParenthesizedExpression)rightExpression).getContainedExpression()); } else { final PyClassType type = as(myTypeEvalContext.getType(rightExpression), PyClassType.class); if (type != null) { if (myUsedMappingKeys.size() > 0 && !PyABCUtil.isSubclass(type.getPyClass(), PyNames.MAPPING, myTypeEvalContext)) { registerProblem(rightExpression, PyPsiBundle.message("INSP.format.requires.mapping")); return; } } inspectArgumentsNumber(rightExpression); } }