boolean (String line, Collection<String> platformLines) { if (platformLines.isEmpty()) { return false; } if (platformLines.contains(line)) { return true; } if (line.startsWith("-Xms") || line.startsWith("-Xmx") || line.startsWith("-Xss")) { return isLowerValue(line.substring(0, 4), line.substring(4), platformLines); } if (line.startsWith("-XX:")) { int p = line.indexOf('=', 4); if (p > 0) return isLowerValue(line.substring(0, p + 1), line.substring(p + 1), platformLines); } return false; }