void (@NotNull ProgressIndicator indicator) { try { T result = task.call(); future.set(result); } catch (PythonUnhandledException e) { LOG.error(errorLogMessage + e.traceback); future.set(null); } catch (Exception e) { future.setException(e); } }