public static boolean isWriteExternal(@NotNull PsiMethod method) {
    final PsiClassType type = TypeUtils.getType("java.io.ObjectOutput", method);
    return MethodUtils.methodMatches(method, null, PsiTypes.voidType(), "writeExternal", type);
  }
public static boolean isWriteExternal(@NotNull PsiMethod method)