# How to write several lines of text inside curly brackets?

I would like to be able to write several lines of text inside a curly brackets in some mathematical equations. Does anyone know how to achieve multiline text such as this:

• Put them into a tabular environment for example. – Sergei Golovan Jul 12 '17 at 11:46
• Use \left\{ lines of text\right\}@eurocoder – Biki Teron Jul 12 '17 at 11:47
• \left\{A \:\middle\lvert\: \parbox{width}{\raggedright text $math$ text} \right\} – daleif Jul 12 '17 at 11:49
• Welcome to TeX.SX! Please add a minimal working example (MWE). Does the comments above solve your problem? – Bobyandbob Jul 12 '17 at 12:16

\documentclass{article}
$A \coloneqq \bigcap_{\mathcal{B} \in \mathcal{S}} B = \left\{ A \subset X \:\middle\lvert\: \parbox{45mm}{\raggedright if \mathcal{B} \subset 2^{X} ist a \sigma-algebra such that \mathcal{E} \subset \mathcal{B} then A \in \mathcal{B}} \right\}.$