Library import. How to import UInjectionHost, UReferenceExpression.class, and UastFacade etc.

Answered

I am trying to traverse Java files to process string literals with the help of a description https://plugins.jetbrains.com/docs/intellij/uast.html#uast-caveats via UInjectionHost. I tried to add dependencies in build.gradle with implementation "org.jetbrains.uast:uast-common:1.0.12" but that one seems too old. How can I successfully import these packages into my plugin? I am working on IntelliJ IDEA 2021.2.1 (Community Edition) with Runtime version: 11.0.11+9-b1504.16 x86_64.

Please sign in to leave a comment.