PyFunction (@Nullable final String name, boolean inherited, @Nullable TypeEvalContext context) { if (name == null) return null; NameFinder<PyFunction> proc = new NameFinder<>(notNullizeContext(context), name); visitMethods(proc, inherited, context); return proc.getResult(); }