GlobalSearchScope (@NotNull GlobalSearchScope scope, FileType @NotNull ... fileTypes) { if (scope == EMPTY_SCOPE) { return EMPTY_SCOPE; } if (fileTypes.length == 0) throw new IllegalArgumentException("empty fileTypes"); return new FileTypeRestrictionScope(scope, fileTypes); }