Maybe<PyCallable> (@NotNull Maybe<PyCallable> maybeCallable) { final PyCallable callable = maybeCallable.valueOrNull(); if (callable != null) { if (!(callable instanceof StubBasedPsiElement)) { return UNKNOWN_CALL; } } return maybeCallable; }