IDEA-115260: correctly identify "java-compatible" sdk