You are right. Should be:

static public String getBuildEnvironmentVariable(IProject project, String configName, String EnvName) {
      return getBuildEnvironmentVariable(project, configName, EnvName, ArduinoConst.EMPTY_STRING);
}