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