Can PhpStorm autocomplete methods in Drupal::service? Are there anyway to get phpStorm to autocomplete \Drupal::service("xxxx")->..

[https://api.drupal.org/api/drupal/core!core.services.yml/8 For complete reference of Drupal8 service 1

For example
Typing .. \Drupal::service("config_factory")->g should show "get" in autocomplete popup list

This would be very handy for services from third-party developer also.
The auto-complete suggestions are based on the type of return value documented in the \Drupal::service() doxygen comment. Since the method may return service of any kind the type of return value is mixed.

That means auto-complete is not possible unless you explicitly specify type of the service.

/** @var \Drupal\Core\Config\ConfigFactoryInterface $config_factory */
$config_factory = \Drupal::service('config.factory');


For some particular services you can use dedicated  methods like \Drupal::configFactory() or \Drupal::config() which have properly documented return value.

Notice that generally dependency injection is more preferable method for accessing services.