GlobalSearchScope (@NotNull Project project) { VirtualFile userSkeletonsDirectory = getUserSkeletonsDirectory(); if (userSkeletonsDirectory != null) { return new GlobalSearchScopesCore.DirectoryScope(project, userSkeletonsDirectory, true); } else { return GlobalSearchScope.EMPTY_SCOPE; } }