Thanks for all the time and help. :)
I finally found it, and the answer to this question was that in my case "java.awt.Color" was not imported, and eclipse does not work on it if it is not imported.
Therefore, it offers you a name if your file already imported the class, but if it did not work, it would not work.
I think this makes the whole function pretty useless, but unfortunately how eclipse works. :/
source share