How do i add an invisible PsiMethod to a PsiClass instance,like Lombok @Getter、@Setter

Answered

How do i add an invisible PsiMethod to a PsiClass instance,like Lombok @Getter、@Setter?
And,the PsiMethod should be invisible in source code

0
2 comments

com.intellij.psi.augment.PsiAugmentProvider

See sample usages in IntelliJ Community sources (incl. Lombok plugin) and here https://plugins.jetbrains.com/intellij-platform-explorer?extensions=com.intellij.lang.psiAugmentProvider

1
Avatar
Permanently deleted user

Thank you so much

0

Please sign in to leave a comment.