private static boolean hasOwnWriteObjectMethod(PsiClass aClass) {
    return ContainerUtil.exists(aClass.findMethodsByName("writeObject", false), SerializationUtils::isWriteObject);
  }
private static boolean hasOwnWriteObjectMethod(PsiClass aClass)