I found in some drupal commerce modules class comments in way I haven't seen so far
/** @var \Drupal\commerce_payment\Entity\PaymentInterface $payment */
$payment = $this->entity;
/** @var \Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway\ExpressCheckoutInterface $payment_gateway_plugin */
$payment_gateway_plugin = $payment->getPaymentGateway()->getPlugin();
I am not sure what to google to get to know more about this, why was it used like that and is this annotation or just plan comment?