DialogWrapperPeerFactory () { 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); } }