The static method someMethod(int) from the type SomeClass should be accessed in a static way"
If you get a notification similar to that, what it means is don't access the method this way.
SomeClass someClass = new SomeClass();
someClass.someMethod(42);
someClass.someMethod(42);
You should just call it from the class this way,
SomeClass.someMethod(42);
The look very similar, but you don't have to instantiate the class since it is a static class/method.
[Click to add or edit comments])
Please prepend comments below including a date