private static Element[] getElements(ModuleSettings moduleSettings, String facetName) {
    Collection<? extends Element> elements = moduleSettings.getFacetElements(facetName);
    return elements.toArray(new Element[0]);
  }
private static Element[] getElements(ModuleSettings moduleSettings, String facetName)