Fix unused method code analysis error