private static <T> @Nullable T handleStubBuilderException(@NotNull FileContent inputData,
                                                            @NotNull StubBuilderType stubBuilderType,
                                                            @NotNull ThrowableComputable<T, Exception> builder) {
    try {
      return builder.compute();
    }
    catch (CancellationException ce) {
      throw ce;
    }
    catch (Exception e) {
      if (e instanceof ControlFlowException) ExceptionUtil.rethrowUnchecked(e);
      LOG.error(PluginException.createByClass("Failed to build stub tree for " + inputData.getFileName(), e,
                                              stubBuilderType.getClassToBlameInCaseOfException()));
      return null;
    }
  }
private static <T> @Nullable T handleStubBuilderException(@NotNull FileContent inputData,
                                                            @NotNull StubBuilderType stubBuilderType,
                                                            @NotNull ThrowableComputable<T, Exception> builder)