int (@NotNull GradleVersion gradleVersion) { if (myVersion == gradleVersion) return 0; String version = gradleVersion.getVersion(); if (myVersion.getVersion().equals(version)) return 0; Integer cached = myResults.get(version); if (cached != null) return cached; int result = myVersion.compareTo(gradleVersion); myResults.put(version, result); return result; }