SearchEverywhereContributor<Object> (int weight) { String id = UUID.randomUUID().toString(); return new SearchEverywhereContributor<>() { @NotNull @Override public String getSearchProviderId() { return id; } @NotNull @Override public String getGroupName() { return id; } @Override public int getSortWeight() { return weight; } @Override public boolean showInFindResults() { return false; } @Override public void fetchElements(@NotNull String pattern, @NotNull ProgressIndicator progressIndicator, @NotNull Processor<? super Object> consumer) { } @Override public boolean processSelectedItem(@NotNull Object selected, int modifiers, @NotNull String searchText) { return false; } @NotNull @Override public ListCellRenderer<? super Object> getElementsRenderer() { throw new UnsupportedOperationException(); } @Nullable @Override public Object getDataForItem(@NotNull Object element, @NotNull String dataId) { return null; } }; }