List<BuildMessage> (@NotNull BuildMessage.Kind kind) { if (kind == BuildMessage.Kind.ERROR) return myErrorMessages; else if (kind == BuildMessage.Kind.WARNING) return myWarnMessages; else return myInfoMessages; }