public Object[] getVariants() {
final List<Definition> definitions = ContainerUtil.concat(allTilesModels, DEFINITION_COLLECTOR);
final List variants = new ArrayList();
for (final Definition definition : definitions) {
final String definitionName = definition.getName().getStringValue();
final XmlElement xmlElement = definition.getXmlElement();
assert xmlElement != null;
final PsiFile psiFile = xmlElement.getContainingFile();
if (psiFile != null &&
StringUtil.isNotEmpty(definitionName)) {
//noinspection ConstantConditions
final LookupElementBuilder builder =