GlobalSearchScope (final Project project) { if (myCachedValue == null) { myCachedValue = CachedValuesManager.getManager(project).createCachedValue( () -> new CachedValueProvider.Result<>(getSearchScopeInner(project), ProjectRootModificationTracker.getInstance(project)), false); } return myCachedValue.getValue(); }