get context type from private/protected methods without parameters