boolean (@NotNull String fileName, @NotNull String libraryName) { if (fileName.equals(libraryName)) return true; String prefix = libraryName + "-"; if (!fileName.startsWith(prefix)) return false; if (fileName.length() == prefix.length()) return false; char versionStart = fileName.charAt(prefix.length()); return isDecimalDigit(versionStart); }