Organize imports option does not always work

Issue description

When in the code option MCreator can't import some needed imports EG
import net.minecraft.block.state.BlockStateContainer;

        protected BlockStateContainer createBlockState() {
            return new BlockStateContainer(this, new IProperty[]{FACING});

This is creating so many problems with custom codes and the reason people are having so much problem with custom code it people tell them put the code in and press import but
the import button at times does not even include the imports for BlockHorizontal when set as a extenderd class.

Issue comments

Submitted by Klemen on Tue, 11/20/2018 - 14:46

If the MCreator can't find the import (which may happen in some cases), you can still manually define it. Just add it to the imports and they should be there. If this does not help, just reply to this ticket and I will reopen it.

It's not finding it sometimes for functions it sometimes can import it's not conistant, and if you can manually and it works the MCreator should be able to do this, since it has to do a check if that import is there to give the error in the first place, this does need looking at the import 90% of the time for me does sweet F a, every example that says use it dont work so I have to add it myself what's bloody useless when I trying to help others with this tool.

But I hope you get this sorted in a future version.