PyMemberInfo<PyElement> (@NotNull final Collection<? extends PyMemberInfo<PyElement>> members, @NotNull final Predicate<? super PyMemberInfo<PyElement>> predicate) { for (final PyMemberInfo<PyElement> pyMemberInfo : members) { if (predicate.apply(pyMemberInfo)) { return pyMemberInfo; } } return null; }