void (@NotNull final PsiElement problemTarget, @Nullable final PyType actual, @Nullable final PyType expected) { if (expected != null && "str".equals(expected.getName())) { return; } if (actual != null && !PyTypeChecker.match(expected, actual, myTypeEvalContext)) { registerProblem(problemTarget, PyPsiBundle.message("INSP.str.format.unexpected.argument.type", actual.getName())); } }