Add dependency checking for iDEA and fix pipeline stage initialization