*
* @return null if not found.
*/
@Nullable
public static JavaInfo getDifferentVersion() {
Jvm jvm = Jvm.current();
for (JvmInstallation candidate : getJvms()) {
if (candidate.getJavaVersion().equals(jvm.getJavaVersion())) {
continue;
}
// Currently tests implicitly assume a JDK
if (!candidate.isJdk()) {
continue;