String (@NotNull File file, @Nullable String entryName, @NotNull Attributes.Name attribute) { if (file.canRead()) { try { try (JarFile jarFile = new JarFile(file)) { Manifest manifest = jarFile.getManifest(); if (manifest != null) { Attributes attributes = entryName != null ? manifest.getAttributes(entryName) : manifest.getMainAttributes(); return attributes.getValue(attribute); } } } catch (IOException e) { LOG.debug(e); } } return null; }