SearchRequest (@NotNull String searchString, @NotNull SearchScope searchScope, @NotNull SearchScope injectionSearchScope) { return new SearchRequest() { @Override public @NotNull String getSearchString() { return searchString; } @Override public @NotNull SearchScope getSearchScope() { return searchScope; } @Override public @NotNull SearchScope getInjectionSearchScope() { return injectionSearchScope; } }; }