public static @NotNull DialogWrapperPeerFactory getInstance() {
    if (!LoadingState.COMPONENTS_REGISTERED.isOccurred()) {
      return getInstanceByName();
    }

    DialogWrapperPeerFactory factory = ApplicationManager.getApplication().getService(DialogWrapperPeerFactory.class);
    return factory == null ? getInstanceByName() : factory;
  }
public static @NotNull DialogWrapperPeerFactory getInstance()