boolean (@NotNull PsiClass aClass, @NotNull String serializableClassName) { Project project = aClass.getManager().getProject(); PsiClass serializableClass = JavaPsiFacade.getInstance(project).findClass(serializableClassName, aClass.getResolveScope()); return serializableClass != null && aClass.isInheritor(serializableClass, true); }