class FutureUtils {

	@Nullable
	public static <T> T getWithoutException(CompletableFuture<T> future) {
		if (future.isDone() && !future.isCompletedExceptionally()) {
			try {
				return future.get();
			} catch (InterruptedException | ExecutionException ignored) {
			}
		}
		return null;
	}

}