LoggingHandler (@NotNull String presentableName) { synchronized (myLogsDisposed) { if (myLogsDisposed.get()) { throw new IllegalStateException("Already disposed, can't add " + presentableName); } LoggingHandlerImpl handler = new LoggingHandlerImpl.Colored(presentableName, myProject); addAdditionalLoggingHandler(handler); return handler; } }