Revert "Revert "Ask on demand for automatically set dangerous methods""

This reverts commit 70f0c3f12234fa201062945c6a8485117c5b98bd.