code: private boolean hasCommonParameter(Parameter parameter) {
          Parameter commonParameter = swagger.getParameter(parameter.getName());
          return commonParameter != null && parameter.getIn().equals(commonParameter.getIn());
      }
docs: Returns true when the swagger object already contains a common parameter
  with the same name and type as the passed parameter.
  
  @param parameter The parameter to check.
  @return true if the swagger object already contains a common parameter with the same name and type