CachedValue<DeclarationChecker> (final XmlFile file, final Void p) { return CachedValuesManager.getManager(file.getProject()).createCachedValue(() -> { final DeclarationChecker holder = new DeclarationChecker(file); holder.check(file); return CachedValueProvider.Result.create(holder, file); }, false); }