void (@NotNull PyFunction function) { if (PyUtil.isInitMethod(function)) { Collection<PsiElement> offenders = new ArrayList<>(); findReturnValueInside(function, offenders); for (PsiElement offender : offenders) { registerProblem(offender, PyPsiBundle.message("INSP.cant.return.value.from.init"), new PyRemoveStatementQuickFix()); } } }