PyMemberInfo<PyElement> (@NotNull final PyClass pyClass, @NotNull final PyElement pyElement) { final PyMemberInfo<PyElement> result = findMember(pyClass, new FindByElement(pyElement)); if (result != null) { return result; } throw new IllegalArgumentException(String.format("Element %s not found in class %s or can't be moved", pyElement, pyClass)); }