code: public function isCandidate(Tokens $tokens)
      {
          return $tokens->isTokenKindFound(T_FUNCTION) && (
              \count((new NamespacesAnalyzer())->getDeclarations($tokens)) ||
              \count((new NamespaceUsesAnalyzer())->getDeclarationsFromTokens($tokens))
          );
      }
docs: {@inheritdoc}