boolean (@NotNull UMethod method, @Nullable RefClass refClass) { String name = method.getName(); if (!"readObject".equals(name)) return false; List<UParameter> parameters = method.getUastParameters(); if (parameters.size() != 1) return false; if (!equalsToText(parameters.get(0).getType(), "java.io.ObjectInputStream")) return false; if (method.isStatic()) return false; UClass aClass = UDeclarationKt.getContainingDeclaration(method, UClass.class); return aClass == null || isSerializable(aClass, refClass); }