public void PopMethod()
{
if (methodStack.Count > 0)
{
CurrentMethod = methodStack.Pop();
}
else
{
CurrentMethod = null;
IsVisible = false;
}
}