boolean (@NotNull final PyAssignmentStatement input) { final PyExpression expression = input.getLeftHandSideExpression(); if (expression == null) { return false; } final PyFunction functionWhereDeclared = PsiTreeUtil.getParentOfType(PyUtil.resolveToTheTop(expression), PyFunction.class); return myInitMethod.equals(functionWhereDeclared); }