Maybe<PyCallable> (Maybe<String> maybeName) { if (maybeName.isDefined()) { final String value = maybeName.value(); if (value == null || PyNames.NONE.equals(value)) { return NONE; } PyFunction method = findMethodByName(value, true, null); if (method != null) return new Maybe<>(method); } return UNKNOWN_CALL; }