Object (Object object) { try { return mySerializer.write(object); } catch (SerializationServiceNotFoundException ignore) { } catch (Exception e) { Throwable unwrap = Exceptions.unwrap(e); if (object instanceof IdeaProject) { ExceptionUtilRt.rethrowUnchecked(unwrap); throw new RuntimeException(unwrap); } //noinspection UseOfSystemOutOrSystemErr System.err.println(ExceptionUtilRt.getThrowableText(unwrap, "org.jetbrains.")); } return object; }