The idea of ββIntelliJ can conduct a global analysis of the code and tell you about all kinds of excessive visibility. If there are any dynamic technologies, it also understands well that they are the customs of this method / class; but it is not perfect.