String (JpsElementReference<? extends JpsCompositeElement> reference) { if (reference instanceof JpsModuleReference) { return MODULE_LEVEL; } JpsCompositeElement element = reference.resolve(); if (element instanceof JpsProject) { return PROJECT_LEVEL; } else if (element instanceof JpsGlobal) { return APPLICATION_LEVEL; } for (JpsModelSerializerExtension extension : JpsModelSerializerExtension.getExtensions()) { String levelId = extension.getLibraryTableLevelId(reference); if (levelId != null) { return levelId; } } return null; }