StructuralSearchProfile[] () { final List<StructuralSearchProfile> list = new SmartList<>(); for (StructuralSearchProfile profile : StructuralSearchProfile.EP_NAME.getExtensions()) { if (profile instanceof StructuralSearchProfileBase) { list.add(profile); } } list.add(new XmlStructuralSearchProfile()); return list.toArray(new StructuralSearchProfile[0]); }