FileType (@NotNull DiffRequestProducer producer) { FileType contentType = producer.getContentType(); if (contentType != null) return contentType; String filePath = producer.getName(); return FileTypeManager.getInstance().getFileTypeByFileName(filePath); }