This usually happens when you shade. Here is an example of shading.
public class YourClass { private int var; }
It happens that you have this method:
public void yourMethod(int var) { this.var = var;
'this.var' is your instance variable and is declared below your class. Although, on the other hand, in my example, var was a parameter.
source share