boolean (@NotNull PsiMethod method) { final PsiClassType type = TypeUtils.getType("java.io.ObjectInputStream", method); return MethodUtils.methodMatches(method, null, PsiTypes.voidType(), "readObject", type); }