Made PreserveDanglingCloseParenthesis working for classes