Can I prevent a PsiElement from being called or used?


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?

1 comment

You can provide an inspection that highlights such usages as detected from the comment


Please sign in to leave a comment.