code: public function isCandidate(Tokens $tokens)
      {
          return $tokens->isAnyTokenKindsFound([T_CLASS, T_TRAIT]) && $tokens->isAnyTokenKindsFound([T_PUBLIC, T_PROTECTED, T_PRIVATE, T_VAR]);
      }
docs: {@inheritdoc}