UsageOptions (boolean usages, @NotNull SearchScope searchScope) { return new UsageOptions() { @Override public boolean isUsages() { return usages; } @Override public @NotNull SearchScope getSearchScope() { return searchScope; } }; }