PsiElement (@NotNull Collection<? extends PyCustomMember> members, @NotNull String name, @NotNull PsiElement context, @NotNull PyResolveContext resolveContext) { for (PyCustomMember member : members) { if (member.getName().equals(name)) { return member.resolve(context, resolveContext); } } return null; }