DiffViewer (@NotNull DiffRequest propertyRequest, @NotNull MyPropertyContext propertyContext) { if (propertyRequest instanceof SvnPropertiesDiffRequest) { return SvnPropertiesDiffViewer.create(propertyContext, ((SvnPropertiesDiffRequest)propertyRequest), true); } else { return ErrorDiffTool.INSTANCE.createComponent(propertyContext, propertyRequest); } }