code: def getParameterByType(self, type):
          
          result = None
          for parameter in self.getParameters():
              typeParam = parameter.getType()
              if typeParam == type:
                  result = parameter
                  break
          return result
docs: Searchs a parameter by type and returns it.