boolean (File file, String entryPath) { if (file.canRead()) { try { try (JarFile jarFile = new JarFile(file)) { return jarFile.getEntry(entryPath) != null; } } catch (IOException ignored) { } } return false; }