public static GHTag findRemoteTag(GHRepository repo, String name) throws IOException { Stream<GHTag> tagStream = StreamSupport.stream(repo.listTags().spliterator(), false); return tagStream.filter(t -> t.getName().equals(name)).findFirst().orElse(null); }