JpsOrderRootType (String rootTypeId) { for (JpsLibraryRootTypeSerializer serializer : PREDEFINED_ROOT_TYPES_SERIALIZERS) { if (serializer.getTypeId().equals(rootTypeId)) { return serializer.getType(); } } for (JpsModelSerializerExtension extension : JpsModelSerializerExtension.getExtensions()) { for (JpsLibraryRootTypeSerializer serializer : extension.getLibraryRootTypeSerializers()) { if (serializer.getTypeId().equals(rootTypeId)) { return serializer.getType(); } } } return JpsOrderRootType.COMPILED; }