Back to Intellij Community

GrMethodMayBeStatic

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GrMethodMayBeStatic.html

2025.3-rc-2223 B
Original Source

Reports methods which may safely be made static.

A method may be static if it is not synchronized, it does not reference any of its class' instance methods and instance fields, and it is not overridden in a subclass.