AntMessage (final @Nls String text, @AntMessage.Priority int priority) { AntMessage customizedMessage = null; for (AntMessageCustomizer customizer : AntMessageCustomizer.EP_NAME.getExtensionList()) { customizedMessage = customizer.createCustomizedMessage(text, priority); if (customizedMessage != null) { break; } } return customizedMessage; }