Can I prevent a PsiElement from being called or used?
Answered
I have mark a PsiElement as not callable.For example:
public class A{
// not callble
public int a;
}
After the A.a is marked as unable to be called, no code can use A.a(just like a is private in outer class and inner class)
How can I achieve that?
Please sign in to leave a comment.
You can provide an inspection that highlights such usages as detected from the comment https://plugins.jetbrains.com/docs/intellij/code-inspections.html