List<AttachItem> (@NotNull final Project project, @NotNull ProgressIndicator indicator) { List<AttachItem> currentItems = new ArrayList<>(); UserDataHolderBase dataHolder = new UserDataHolderBase(); for (XAttachHostProvider hostProvider : getAvailableHosts()) { indicator.checkCanceled(); //noinspection unchecked Set<XAttachHost> hosts = new HashSet<>(hostProvider.getAvailableHosts(project)); for (XAttachHost host : hosts) { //noinspection unchecked currentItems.add(new AttachHostItem(hostProvider.getPresentationGroup(), false, host, project, dataHolder)); } } //noinspection unchecked Collections.sort(currentItems); doUpdateFirstInGroup(currentItems); return currentItems; }