boolean (@NotNull PsiElement clazz, String markerClassFQName) { if (markerClassFQName == null) return true; return CachedValuesManager.<ConcurrentMap<String, PsiClass>>getCachedValue(clazz, () -> { var project = clazz.getProject(); return new CachedValueProvider.Result<>( ConcurrentFactoryMap.createMap( markerInterfaceName -> JavaPsiFacade.getInstance(project).findClass(markerInterfaceName, clazz.getResolveScope())), ProjectRootManager.getInstance(project)); }).get(markerClassFQName) != null; }