I have JavaFX application in which I want to call from static Java method this code.

```
Image icon = new Image(getClass().getResource("/images/system-help.png").toExternalForm());

```

But I get this warning message:

```
non-static method getClass() cannot be referenced from a static context

```

Can you tell me what is the proper way to rewrite this code in order to use it into static method?