JetBrains interview question

How would you implement a singleton pattern in Java?