Using the $hbar$-expansion of the Greens function of the Hartree-Fock-Bogoliubov equation, we extend the second-order Thomas-Fermi approximation to generalized superfluid Fermi systems by including the density-dependent effective mass and the spin-orbit potential. We first implement and examine the full correction terms over different energy intervals of the quasiparticle spectra in calculations of finite nuclei. Final applications of this generalized Thomas-Fermi method are intended for various inhomogeneous superfluid Fermi systems.