private boolean isOnClassPath(IRubyScript element) {
   IRubyProject project = element.getRubyProject();
   if (project == null || !project.exists()) return false;
   return project.isOnLoadpath(element);
 }