LocalQuickFix (Object... infos) { final Boolean serializable = (Boolean)infos[0]; final Boolean deserializable = (Boolean)infos[1]; final PsiClass aClass = (PsiClass)infos[2]; final boolean addReadObjectMethod = deserializable.booleanValue() && !hasOwnReadObjectMethod(aClass); final boolean addWriteObjectMethod = serializable.booleanValue() && !hasOwnWriteObjectMethod(aClass); if (!addReadObjectMethod && !addWriteObjectMethod) { return null; } return new AddReadWriteObjectMethodsFix(addReadObjectMethod, addWriteObjectMethod); }