private static boolean isReadObjectNoDataMethod(@NotNull UMethod method, @Nullable RefClass refClass) {
    if (!"readObjectNoData".equals(method.getName())) return false;
    if (method.isStatic() || method.getVisibility() != UastVisibility.PRIVATE) return false;
    if (!method.getUastParameters().isEmpty()) return false;
    if (!equalsToText(method.getReturnType(), PsiKeyword.VOID)) return false;
    UClass aClass = UDeclarationKt.getContainingDeclaration(method, UClass.class);
    return aClass == null || isSerializable(aClass, refClass);
  }
private static boolean isReadObjectNoDataMethod(@NotNull UMethod method, @Nullable RefClass refClass)