void (@NotNull Map<String, PyTargetExpression> result, @NotNull Map<String, ScopeOwner> scopesToSkip) { PyFunction newMethod = findMethodByName(PyNames.NEW, false, null); if (newMethod != null) { for (PyTargetExpression target : getTargetExpressions(newMethod)) { String name = target.getName(); if (scopesToSkip.get(name) != newMethod) { result.put(name, target); } } } PyFunction initMethod = findMethodByName(PyNames.INIT, false, null); if (initMethod != null) { collectInstanceAttributes(initMethod, result, Collections.emptySet(), scopesToSkip); } }