FrameworkType (@NotNull FacetType<?, ?> facetType) { for (FrameworkDetector detector : FrameworkDetector.EP_NAME.getExtensionList()) { if (detector instanceof FacetBasedFrameworkDetector<?, ?> && ((FacetBasedFrameworkDetector)detector).getFacetType().equals(facetType)) { return detector.getFrameworkType(); } } return null; }