in tools/javac/CompatibilityPlugin.java [81:90]
public Void visitMethod(MethodTree node, String qualifiedName) {
// getApiVersionFromModule works, well, by asking version from module,
// which is not available in Java 8, so for that case we return UNKNOWN.
if (qualifiedName.equals("com.jetbrains.JBR") &&
node.getName().toString().equals("getApiVersionFromModule")) {
var body = (JCTree.JCBlock) node.getBody();
body.stats = List.of(treeMaker.Return(treeMaker.Literal("UNKNOWN")));
}
return super.visitMethod(node, qualifiedName);
}