PyMemberInfo<PyFunction> (@NotNull final PyFunction pyFunction) { final PyUtil.MethodFlags flags = PyUtil.MethodFlags.of(pyFunction); assert flags != null : "No flags return while element is function " + pyFunction; final boolean isStatic = flags.isStaticMethod() || flags.isClassMethod(); return new PyMemberInfo<>(pyFunction, isStatic, buildDisplayMethodName(pyFunction), isOverrides(pyFunction), this, couldBeAbstract(pyFunction)); }