import com.intellij.openapi.diagnostic.Logger; public class Example { private static final Logger LOGGER = Logger.getInstance(Example.class); public void myMethod() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Debug information for myMethod"); } // other code } }In this example, we create a Logger instance and use the isDebugEnabled method to check if debug logging is enabled. If it is, we then use the LOGGER.debug method to print debug information to the console. This library belongs to the IntelliJ IDEA package.