boolean (PsiClass aClass) { for (final PsiMethod method : aClass.findMethodsByName("readObject", true)) { if (SerializationUtils.isReadObject(method)) { return ControlFlowUtils.methodAlwaysThrowsException((PsiMethod)method.getNavigationElement()); } } return false; }