In IDE environments you usually don't want to lookup scripts by ClassLoading. Instead you want to do it using the internal structures your IDE infrastructure provides. This is of use for Netbeans, Eclipse and of course also IntelliJ. The structure should provide a way to see if for a given name a ClassNode can be created. The ClassNode will represent whatever is in the internal structure and maps our API onto that of the IDE.