Set<MavenArchetype> () { MavenIndicesManager indicesManager = MavenIndicesManager.getInstance(myProject); Set<MavenArchetype> result = new HashSet<>(getInnerArchetypes()); result.addAll(loadUserArchetypes(getUserArchetypesFile())); if (!indicesManager.isInit()) { indicesManager.updateIndicesListSync(); } MavenIndexHolder indexHolder = indicesManager.getIndex(); for (MavenIndex index : indexHolder.getIndices()) { result.addAll(index.getArchetypes()); } for (MavenArchetypesProvider each : MavenArchetypesProvider.EP_NAME.getExtensionList()) { result.addAll(each.getArchetypes()); } return result; }