Moved the last idea plugin related code from GradleModelLoader as well.