handle empty inheritance class and empty method