IntelliJ import constants

Is there a way to include importing of constants as an intention in IntelliJ?

Use this import:


import static org.lwjgl.opengl.GL15.*;

That is not the solution, I would like to have the option appear on the intent menu

Why would you not just static import the class as said above?

A little bit late, but hopefully it helps someone out there.

CTRL+ALT+SPACE will look into your entire classpath for the variable. If you want it to automatically statically import that class, hit ALT+ENTER on the desired variable:

Hitting CTRL+ALT+SPACE:

Hitting ALT+ENTER after choosing the desired variable: