def METHOD_NAME(self):
    query_parameters = self.spec.last_query.extra_parameters
    libraries = ["libmpich"]
    if "cxx" in query_parameters:
        libraries.extend(["libmpicxx", "libmpichcxx"])
    if "f77" in query_parameters:
        libraries.extend(["libmpifort", "libmpichfort", "libfmpi", "libfmpich"])
    if "f90" in query_parameters:
        libraries.extend(["libmpif90", "libmpichf90"])
    METHOD_NAME = find_libraries(libraries, root=self.prefix.lib, recursive=True)
    METHOD_NAME += find_libraries(libraries, root=self.prefix.lib64, recursive=True)
    return METHOD_NAME