I think we need to keep these codes because we also need to check maven project. 
if ( "ant".equals( op.getProjectProvider().content().getShortName() ))
{
   return CoreUtil.getProject( projectName + "-" + op.getPluginType().content().toString() ).exists();
}
return CoreUtil.getProject( projectName ).exists();