public static boolean isM2EMavenContainer(IRuntimeClasspathEntry entryCur){
  return entryCur.getType() == IRuntimeClasspathEntry.CONTAINER && ((MAVEN_CONTAINER_ID.equals(entryCur.getVariableName()) || NEW_MAVEN_CONTAINER_ID.equals(entryCur.getVariableName())));
}

public static boolean isM2EMavenContainer ( IRuntimeClasspathEntry entryCur ) { return entryCur . getType ( ) == IRuntimeClasspathEntry . CONTAINER && ( ( MAVEN_CONTAINER_ID . equals ( entryCur . getVariableName ( ) ) || NEW_MAVEN_CONTAINER_ID . equals ( entryCur . getVariableName ( ) ) ) ) ; }
sometimes for m2e , if you set package type as war , it will load some dependency to web app container . here the method is actaully
