F () { final Module module = ModuleManager.getInstance(myManager.getProject()).findModuleByName(myModuleName); if (module == null) return null; final FacetType<F, ?> type = getFacetType(); if (type == null) return null; return FacetManager.getInstance(module).findFacet(type.getId(), myFacetName); }