private static @NotNull DialogWrapperPeerFactory getInstanceByName() {
    try {
      Constructor<?> constructor = Class.forName("com.intellij.openapi.ui.impl.DialogWrapperPeerFactoryImpl").getDeclaredConstructor();
      constructor.setAccessible(true);
      return (DialogWrapperPeerFactory)constructor.newInstance();
    }
    catch (Exception e) {
      throw new RuntimeException("Can't instantiate DialogWrapperPeerFactory", e);
    }
  }
private static @NotNull DialogWrapperPeerFactory getInstanceByName()