CompletableFuture<Icon> (ThreadReferenceImpl threadReference, boolean current) { return threadReference.isSuspendedAsync().thenApply(suspended -> { if (suspended) { if (current) { return AllIcons.Debugger.ThreadCurrent; } else { return AllIcons.Debugger.ThreadSuspended; } } return AllIcons.Debugger.ThreadRunning; }); }