boolean (@NotNull UClass aClass, @Nullable RefClass refClass, @NotNull String fqn) { PsiClass psiClass = aClass.getJavaPsi(); Project project = psiClass.getProject(); PsiClass serializableClass = DumbService.getInstance(project).computeWithAlternativeResolveEnabled( () -> JavaPsiFacade.getInstance(project).findClass(fqn, psiClass.getResolveScope())); return serializableClass != null && isSerializable(aClass, refClass, serializableClass); }