boolean (@NotNull VcsLogProgress.ProgressKey key, @NotNull String logId) { if (key instanceof VisiblePackProgressKey visiblePackProgressKey) { return visiblePackProgressKey.getLogId().equals(logId) && visiblePackProgressKey.isVisible(); } return false; }