LoggingHandler (@NotNull String presentableName) { synchronized (myAdditionalLoggingHandlers) { for (LoggingHandlerBase next : myAdditionalLoggingHandlers) { if (next instanceof LoggingHandler && presentableName.equals(next.getPresentableName())) { return (LoggingHandler)next; } } return addAdditionalLog(presentableName); } }