original_string: protected function replacePseudoTypes($fqsen, $container)
      {
          $pseudoTypes = array('self', '$this');
          foreach ($pseudoTypes as $pseudoType) {
              if ((strpos($fqsen, $pseudoType . '::') === 0 || $fqsen === $pseudoType) && $container) {
                  $fqsen = $container->getFullyQualifiedStructuralElementName()
                      . substr($fqsen, strlen($pseudoType));
              }
          }
  
          return $fqsen;
      }
code: protected function replacePseudoTypes($fqsen, $container)
      {
          $pseudoTypes = array('self', '$this');
          foreach ($pseudoTypes as $pseudoType) {
              if ((strpos($fqsen, $pseudoType . '::') === 0 || $fqsen === $pseudoType) && $container) {
                  $fqsen = $container->getFullyQualifiedStructuralElementName()
                      . substr($fqsen, strlen($pseudoType));
              }
          }
  
          return $fqsen;
      }
code_tokens: protected function replacePseudoTypes ( $ fqsen , $ container ) { $ pseudoTypes = array ( 'self' , '$this' ) ; foreach ( $ pseudoTypes as $ pseudoType ) { if ( ( strpos ( $ fqsen , $ pseudoType . '::' ) === 0 || $ fqsen === $ pseudoType ) && $ container ) { $ fqsen = $ container -> getFullyQualifiedStructuralElementName ( ) . substr ( $ fqsen , strlen ( $ pseudoType ) ) ; } } return $ fqsen ; }
docstring: Replaces pseudo-types, such as `self`, into a normalized version based on the last container that was
  encountered.
  
  @param string $fqsen
  @param DescriptorAbstract|null $container
  
  @return string
docstring_tokens: Replaces pseudo - types such as self into a normalized version based on the last container that was encountered .