@Override
  protected Collection<? extends PyElement> getElementsToStoreReferences(@NotNull Collection<PyElement> elements) {
    List<PyElement> result = new ArrayList<>();
    for (PyElement element : elements) {
      PyPossibleClassMember classMember = as(element, PyPossibleClassMember.class);
      if (classMember == null) {
        continue;
      }
      PyClass pyClass = classMember.getContainingClass();
      if (pyClass == null) {
        continue;
      }
      Property property = getProperty(pyClass, element);
      result.addAll(getAllFunctions(property));
      PyAssignmentStatement assignment = PsiTreeUtil.getParentOfType(property.getDefinitionSite(), PyAssignmentStatement.class);
      if (assignment != null) {
        result.add(assignment);
      }
    }
    return result;
  }
@Override
  protected Collection<? extends PyElement> getElementsToStoreReferences(@NotNull Collection<PyElement> elements)