JpsTypedLibrary<JpsSdk<JpsDummyElement>> () { JpsTypedLibrary<? extends JpsSdk<? extends JpsElement>> wrapper = myContainer.getChild(WRAPPER_ROLE).resolve(); if (wrapper == null) return null; JpsModel model = getModel(); if (model == null) return null; String sdkName = mySdkType.getJavaSdkName(wrapper.getProperties().getSdkProperties()); if (sdkName == null) return null; JpsLibrary library = model.getGlobal().getLibraryCollection().findLibrary(sdkName); return library != null ? library.asTyped(JpsJavaSdkType.INSTANCE) : null; }